blob: 34a2bbd4f6e09dbdd7df431de4e8354e0405721f (
plain) (
tree)
|
|
# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@kth.se>
pkgname=asroot-libpassphrase
pkgver=1.1.1
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=(fdca7f8998e2ece100fe45354d16d610ce7ffeac6ffd9830e611643c1d20eb36)
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
}
|