blob: 600e9674ae2476d1b6b06e6d98fc5264239b5eef (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@kth.se>
pkgname=asroot-libpassphrase
pkgver=1.1.5
pkgrel=1
pkgdesc="A simpler alternative to sudo and doas, libpassphrase version"
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=(95585007d4cad2577c96a0c5d14d2f36aa796a3a4d918f292c3192e5ae601e09)
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
}
|