mirror of
https://github.com/xHyroM/void-packages.git
synced 2024-12-23 04:31:06 +01:00
20 lines
315 B
Bash
Executable file
20 lines
315 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# build.sh
|
|
|
|
if [ "$1" != "$2" ]; then
|
|
arch="-a $2"
|
|
fi
|
|
|
|
if [ "$3" = 1 ]; then
|
|
test="-Q"
|
|
fi
|
|
|
|
PKGS=$(/hostrepo/xbps-src $test sort-dependencies $(cat /tmp/templates))
|
|
|
|
for pkg in ${PKGS}; do
|
|
/hostrepo/xbps-src -j$(nproc) -s -H "$HOME"/hostdir $arch $test pkg "$pkg"
|
|
[ $? -eq 1 ] && exit 1
|
|
done
|
|
|
|
exit 0
|