From a548b6e6aea947aed7cd8c5d77ad8dcfc9ee45f4 Mon Sep 17 00:00:00 2001 From: langfingaz Date: Tue, 20 Apr 2021 11:17:10 +0200 Subject: [PATCH] fix --- pkg/de-p1st-sudo/PKGBUILD | 5 +++-- prototype/PKGBUILD | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) 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 }