Skip to content

Commit

Permalink
fix: build package query before yeet when installing with the install…
Browse files Browse the repository at this point in the history
… script
  • Loading branch information
gamemaker1 committed Jun 17, 2021
1 parent 0307e4f commit bde2690
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions assets/package/install
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,26 @@ fi
printg "==> Starting build process..."

# The build dir is the same as if we were installing yeet using yeet
# We need to build package-query as well as yeet

# Clear the build dir (in case it already exists)
rm -rf "${XDG_CACHE_HOME:-$HOME/.cache}/yeet/build/yeet/"
rm -rf "${XDG_CACHE_HOME:-$HOME/.cache}/yeet/build/package-query"
rm -rf "${XDG_CACHE_HOME:-$HOME/.cache}/yeet/build/yeet"
# Create it again
mkdir -p "${XDG_CACHE_HOME:-$HOME/.cache}/yeet/build/yeet/"
mkdir -p "${XDG_CACHE_HOME:-$HOME/.cache}/yeet/build/"
# Move into the dir
cd "${XDG_CACHE_HOME:-$HOME/.cache}/yeet/build/yeet/"
cd "${XDG_CACHE_HOME:-$HOME/.cache}/yeet/build/"

# Clone the repositories
git clone https://aur.archlinux.org/package-query.git
git clone https://aur.archlinux.org/yeet.git

# Build package query first
cd package-query
makepkg -sfCci

# Clone the repository
git clone https://aur.archlinux.org/yeet.git .
# Build
makepkg -sic
cd ../yeet
makepkg -sfCci

# Done
printg "==> Yeet installed succesfully!"

0 comments on commit bde2690

Please sign in to comment.