blob: f8c6bbc69eef30c309b78e5c3209e54c08886a4e (
plain) (
tree)
|
|
# Maintainer: Mattias Andrée <m@`base64 -d`(bWFhbmRyZWU).se>
pkgname=asroot-libpassphrase
pkgver=1.1.8
pkgrel=1
pkgdesc="A simpler alternative to sudo and doas, libpassphrase version"
arch=('x86_64')
url="https://codeberg.org/maandree/asroot"
license=('custom:ISC')
depends=(libpassphrase)
makedepends=(sed)
conflicts=(asroot)
provides=(asroot)
source=(asroot-$pkgver.tar.gz::${url}/archive/${pkgver}.tar.gz)
sha256sums=(d67b91eabbe4bf72a6acf17cc1dbafb0d2cf44ddbf07eedf8bd1be53cc0d981f)
prepare() {
cd "${srcdir}/asroot"
sed '/CPPFLAGS/s/$/ -DWITH_LIBPASSPHRASE/' < config.mk > config.mk.tmp
sed '/LDFLAGS/s/$/ -lpassphrase/' < config.mk.tmp > config.mk
}
build() {
cd "${srcdir}/asroot"
make DESTDIR="${pkgdir}/" PREFIX=/usr
}
package() {
cd "${srcdir}/asroot"
make DESTDIR="${pkgdir}/" PREFIX=/usr install
make DESTDIR="${pkgdir}/" PREFIX=/usr post-install
}
|