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

View File

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