diff options
author | Mattias Andrée <maandree@kth.se> | 2021-01-31 22:52:34 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-01-31 22:52:34 +0100 |
commit | 0fdc1653ee3ed005a6007c75cb604b20caf9fb80 (patch) | |
tree | 6f0028a42c147bd9fdf58a51f6801263d4458f87 /asroot-libpassphrase/PKGBUILD | |
parent | Update simple-icon-theme to version 9 (diff) | |
download | aur-packages-0fdc1653ee3ed005a6007c75cb604b20caf9fb80.tar.gz aur-packages-0fdc1653ee3ed005a6007c75cb604b20caf9fb80.tar.bz2 aur-packages-0fdc1653ee3ed005a6007c75cb604b20caf9fb80.tar.xz |
Add asroot and asroot-libpassphrase
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | asroot-libpassphrase/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/asroot-libpassphrase/PKGBUILD b/asroot-libpassphrase/PKGBUILD new file mode 100644 index 0000000..9bd4e07 --- /dev/null +++ b/asroot-libpassphrase/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@kth.se> +pkgname=asroot-libpassphrase +pkgver=1.0 +pkgrel=1 +pkgdesc="A simpler alternative to sudo and doas" +arch=('x86_64') +url="https://github.com/maandree/asroot" +license=('custom:ISC') +depends=(libpassphrase) +makedepends=(sed) +conflicts=(asroot) +provides=(asroot) +source=(asroot-$pkgver.tar.gz::https://github.com/maandree/asroot/archive/${pkgver}.tar.gz) +sha256sums=(09efac1aa8e2634723979725541cc9919dfcc95dc8730c8254370520f8d54360) + +prepare() { + cd "${srcdir}/asroot-${pkgver}" + sed '/CPPFLAGS/s/$/ -DWITH_LIBPASSPHRASE/' < config.mk > config.mk.tmp + sed '/LDFLAGS/s/$/ -lpassphrase/' < config.mk.tmp > config.mk +} + +build() { + cd "${srcdir}/asroot-${pkgver}" + make DESTDIR="${pkgdir}/" PREFIX=/usr +} + +package() { + cd "${srcdir}/asroot-${pkgver}" + make DESTDIR="${pkgdir}/" PREFIX=/usr install + make DESTDIR="${pkgdir}/" PREFIX=/usr post-install +} |