This commit is contained in:
Daniel Langbein 2021-05-02 19:25:48 +02:00
parent 03eba11d8e
commit ba1fb69714
2 changed files with 9 additions and 10 deletions

View File

@ -7,24 +7,23 @@ function build-pkg() {
# check if PKGBUILD exists, otherwise skip # check if PKGBUILD exists, otherwise skip
[ -f "pkg/${PKG}/PKGBUILD" ] || { [ -f "pkg/${PKG}/PKGBUILD" ] || {
echo "Package ${PKG} does not contain a PKGBUILD file - skipping it!"; return 0; echo "Directory pkg/${PKG} does not contain a PKGBUILD file - skipping it!";
FAILED_PKGS+=("${PKG}");
return 0;
} }
cd "pkg/${PKG}" || return $? cd "pkg/${PKG}" || return $?
# build and copy to /home/custompkgs # build and copy to /home/custompkgs
aur build -c || { BUILD_CMD=('makepkg' '-Ccsr' '&&' 'cp' '"${PKG}-"*.pkg.tar.zst' '/home/custompkgs/')
echo "Package ${PKG} failed!"; # BUILD_CMD=('aur' 'build' '-c')
"${BUILD_CMD[@]}" || {
echo "Failed to build package ${PKG}!";
FAILED_PKGS+=("${PKG}"); FAILED_PKGS+=("${PKG}");
} }
## build
# makepkg -Ccsr || return $?
## copy to /home/custompkgs
# cp "${PKG}-"*.pkg.tar.zst /home/custompkgs/ || return $?
cd ../.. || return $? cd ../.. || return $?
} }

View File

@ -3,7 +3,7 @@ _pkgname=dns
_reponame=arch _reponame=arch
pkgname="de-p1st-$_pkgname" pkgname="de-p1st-$_pkgname"
pkgver=0.0.2 pkgver=0.0.2
pkgrel=2 pkgrel=3
pkgdesc="DNS configuration: Use DNS over TLS" pkgdesc="DNS configuration: Use DNS over TLS"
arch=('any') arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}" url="https://codeberg.org/privacy1st/${_reponame}"