diff --git a/build-pkg.sh b/build-pkg.sh index 73b79ad..68667cb 100755 --- a/build-pkg.sh +++ b/build-pkg.sh @@ -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 }