update build-pkg.sh

This commit is contained in:
Daniel Langbein 2021-04-29 14:52:03 +02:00
parent e007b1c6db
commit 4599580882

View File

@ -10,17 +10,25 @@ function build-pkg() {
echo "Package ${PKG} does not contain a PKGBUILD file - skipping it!"; return 0;
}
cd "pkg/${PKG}" || exit
cd "pkg/${PKG}" || return $?
aur build -c || exit
# makepkg -Ccsr || exit
cd ../.. || exit
# build and copy to /home/custompkgs
aur build -c || return $?
## build
# makepkg -Ccsr || return $?
## copy to /home/custompkgs
# cp "${PKG}-"*.pkg.tar.zst /home/custompkgs/ || return $?
cd ../.. || return $?
}
function build-all() {
for PKG in pkg/*; do
build-pkg "$(basename "${PKG}")"
build-pkg "$(basename "${PKG}")" || return $?
done
}