This commit is contained in:
Daniel Langbein 2021-05-02 18:02:20 +02:00
parent f224d76522
commit 03eba11d8e
2 changed files with 15 additions and 2 deletions

View File

@ -14,7 +14,10 @@ function build-pkg() {
# build and copy to /home/custompkgs
aur build -c || return $?
aur build -c || {
echo "Package ${PKG} failed!";
FAILED_PKGS+=("${PKG}");
}
## build
# makepkg -Ccsr || return $?
@ -37,6 +40,8 @@ function main() {
# either zero arguments to build all packages
# or the names of the packages to build as arguments
FAILED_PKGS=()
if [ "$#" -gt "0" ]; then
# at least one argument is given
@ -51,7 +56,15 @@ function main() {
fi
# push remote repository
echo ""
arch-repo-push-new || exit
if [ "${#FAILED_PKGS[@]}" -gt "0" ]; then
echo ""
echo "Warning: Not all packages were build successfully: ${FAILED_PKGS[*]}"
return 1
fi
}
main "$@"

View File

@ -4,7 +4,7 @@ _reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.1.2
pkgrel=1
pkgdesc="Arch Linux base packages"
pkgdesc="base packages for headless Arch installation"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')