Skip to content

Commit

Permalink
util/buildpkgs: Always correctly locate setenv.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lutoma committed Nov 14, 2023
1 parent 8c2aa8d commit 80197a8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions util/buildpkgs.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail

source setenv.sh "/tmp/image"
SCRIPT_DIR="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source $SCRIPT_DIR/setenv.sh "/tmp/image"

mkdir /tmp/packages || true

Expand All @@ -22,12 +23,10 @@ for dir in "$@"; do
need_packages+=(${makedepend[@]})
fi


echo "makedepend: ${makedepend[@]}"
sudo pacman --root "$SYSROOT" --noconfirm -Sy "${need_packages[@]}"
cd $dir
makepkg -Ad
setarch i686
makepkg -Ad --sign
mv *.pkg.tar* /tmp/packages
cd ..
# --sign
done

0 comments on commit 80197a8

Please sign in to comment.