diff --git a/build-pkg.sh b/build-pkg.sh index 7d757ce..9f54c62 100755 --- a/build-pkg.sh +++ b/build-pkg.sh @@ -7,24 +7,23 @@ function build-pkg() { # check if PKGBUILD exists, otherwise skip [ -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 $? # build and copy to /home/custompkgs - aur build -c || { - echo "Package ${PKG} failed!"; + BUILD_CMD=('makepkg' '-Ccsr' '&&' 'cp' '"${PKG}-"*.pkg.tar.zst' '/home/custompkgs/') + # BUILD_CMD=('aur' 'build' '-c') + + "${BUILD_CMD[@]}" || { + echo "Failed to build package ${PKG}!"; FAILED_PKGS+=("${PKG}"); } - ## build - # makepkg -Ccsr || return $? - ## copy to /home/custompkgs - # cp "${PKG}-"*.pkg.tar.zst /home/custompkgs/ || return $? - - cd ../.. || return $? } diff --git a/pkg/de-p1st-dns/PKGBUILD b/pkg/de-p1st-dns/PKGBUILD index fb311a3..eaedfdc 100644 --- a/pkg/de-p1st-dns/PKGBUILD +++ b/pkg/de-p1st-dns/PKGBUILD @@ -3,7 +3,7 @@ _pkgname=dns _reponame=arch pkgname="de-p1st-$_pkgname" pkgver=0.0.2 -pkgrel=2 +pkgrel=3 pkgdesc="DNS configuration: Use DNS over TLS" arch=('any') url="https://codeberg.org/privacy1st/${_reponame}"