From 45995808825beb5995e705d239ab792d65b9016c Mon Sep 17 00:00:00 2001 From: langfingaz Date: Thu, 29 Apr 2021 14:52:03 +0200 Subject: [PATCH] update build-pkg.sh --- build-pkg.sh | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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 }