git » asignify.git » main » tree

[main] / PKGBUILD

# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>

pkgname=asignify
pkgver=1.0.git240621
pkgrel=2
pkgdesc="Yet another signify tool"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
license=('BSD')
url="https://github.com/urjaman/asignify"
#url="https://github.com/vstakhov/asignify"
depends=('openssl')
#makedepends=('cmake')
provides=('libasignify.so')
source=("$pkgname-240621.tar.gz")

prepare() {
	sed -i '/mandir/s/prefix/datarootdir/' "$pkgname/docs/Makefile.am"
	true
}

build() {
	cd "$pkgname"
	export CPPFLAGS+=" -D_FILE_OFFSET_BITS=64"
	./autogen.sh
	./configure \
		--prefix=/usr \
		--sbindir=/usr/bin \
		--datadir=/usr/share \
		--libexecdir=/usr/lib/asignify \
		--sysconfdir=/etc \
		--sharedstatedir=/usr/share/asignify \
		--localstatedir=/var/lib/asignify \
		--with-gnu-ld \
		--enable-openssl
	make
}

package() {
	cd "$pkgname"
	make install DESTDIR="$pkgdir/"
	install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
sha256sums=('d7f2303e783b26b5e759b85dc448b033f21d1a644589a9e0687daba3c273d822')