From 0fdc1653ee3ed005a6007c75cb604b20caf9fb80 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 31 Jan 2021 22:52:34 +0100 Subject: Add asroot and asroot-libpassphrase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- asroot-libpassphrase/PKGBUILD | 31 +++++++++++++++++++++++++++++++ asroot-libpassphrase/upload | 1 + asroot/PKGBUILD | 21 +++++++++++++++++++++ asroot/upload | 1 + 4 files changed, 54 insertions(+) create mode 100644 asroot-libpassphrase/PKGBUILD create mode 120000 asroot-libpassphrase/upload create mode 100644 asroot/PKGBUILD create mode 120000 asroot/upload 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 +} diff --git a/asroot-libpassphrase/upload b/asroot-libpassphrase/upload new file mode 120000 index 0000000..1e7a8be --- /dev/null +++ b/asroot-libpassphrase/upload @@ -0,0 +1 @@ +../upload \ No newline at end of file diff --git a/asroot/PKGBUILD b/asroot/PKGBUILD new file mode 100644 index 0000000..2fc5da8 --- /dev/null +++ b/asroot/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@kth.se> +pkgname=asroot +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') +source=(asroot-$pkgver.tar.gz::https://github.com/maandree/asroot/archive/${pkgver}.tar.gz) +sha256sums=(09efac1aa8e2634723979725541cc9919dfcc95dc8730c8254370520f8d54360) + +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 +} diff --git a/asroot/upload b/asroot/upload new file mode 120000 index 0000000..1e7a8be --- /dev/null +++ b/asroot/upload @@ -0,0 +1 @@ +../upload \ No newline at end of file -- cgit v1.2.3-70-g09d2