mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
minor
This commit is contained in:
parent
f224d76522
commit
03eba11d8e
15
build-pkg.sh
15
build-pkg.sh
@ -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 "$@"
|
||||||
|
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user