diff --git a/pkg/de-p1st-sudo/PKGBUILD b/pkg/de-p1st-sudo/PKGBUILD index f1092fd..a8e018c 100644 --- a/pkg/de-p1st-sudo/PKGBUILD +++ b/pkg/de-p1st-sudo/PKGBUILD @@ -1,11 +1,12 @@ # Maintainer: Daniel Langbein _pkgname=sudo +_reponame=arch-pkg pkgname="de-p1st-$_pkgname" pkgver=0.0.1 pkgrel=1 pkgdesc="sudo with configuration" arch=('any') -url="https://git.privacy1st.de/langfingaz/arch-pkg" +url="https://git.privacy1st.de/langfingaz/${_reponame}" license=('MIT') groups=() depends=() @@ -23,7 +24,7 @@ noextract=() sha256sums=('SKIP') package() { - cd "pkg/$pkgname" + cd "${_reponame}/pkg/${pkgname}" install -Dm0644 wheel "$pkgdir"/etc/sudoers.d/wheel } diff --git a/prototype/PKGBUILD b/prototype/PKGBUILD index b6a4c9e..eb80e3d 100644 --- a/prototype/PKGBUILD +++ b/prototype/PKGBUILD @@ -1,11 +1,12 @@ # Maintainer: Daniel Langbein _pkgname=!! TODO !! +_reponame=arch-pkg pkgname="de-p1st-$_pkgname" pkgver=0.0.1 pkgrel=1 pkgdesc=" !! TODO !! " arch=('any') -url="https://git.privacy1st.de/langfingaz/arch-pkg" +url="https://git.privacy1st.de/langfingaz/${_reponame}" license=('MIT') groups=() depends=() @@ -23,14 +24,14 @@ noextract=() sha256sums=() # autofill using updpkgsums, see https://man.archlinux.org/man/updpkgsums.8.en build() { - cd "pkg/$pkgname" + cd "${_reponame}/pkg/${pkgname}" ./configure --prefix=/usr make } package() { - cd "pkg/$pkgname" + cd "${_reponame}/pkg/${pkgname}" make DESTDIR="$pkgdir/" install }