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