summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée2021-01-31 22:53:20 +0100
committerMattias Andrée2021-01-31 22:53:20 +0100
commit9f337d1f2ddf507c8f51f3d3e17c168a78d6c016 (patch)
tree03da60c86df7ef9b56b453e0d2427d10cbd07270
downloadaur-9f337d1f2ddf507c8f51f3d3e17c168a78d6c016.tar.gz
Initial import, version 1.0
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD31
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..501420a84f16
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = asroot-libpassphrase
+ pkgdesc = A simpler alternative to sudo and doas
+ pkgver = 1.0
+ pkgrel = 1
+ url = https://github.com/maandree/asroot
+ arch = x86_64
+ license = custom:ISC
+ makedepends = sed
+ depends = libpassphrase
+ provides = asroot
+ conflicts = asroot
+ source = asroot-1.0.tar.gz::https://github.com/maandree/asroot/archive/1.0.tar.gz
+ sha256sums = 09efac1aa8e2634723979725541cc9919dfcc95dc8730c8254370520f8d54360
+
+pkgname = asroot-libpassphrase
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..9bd4e077d784
--- /dev/null
+++ b/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
+}