26 lines
654 B
Bash
26 lines
654 B
Bash
# Template file for 'libzahl'
|
|
pkgname=libzahl
|
|
version=1.0
|
|
revision=1
|
|
short_desc="A library for arbitrary size integers"
|
|
maintainer="copyleftie <copyleftie@protonmail.com>"
|
|
license="ISC"
|
|
homepage="https://libs.suckless.org/libzahl"
|
|
distfiles="https://git.suckless.org/libzahl/snapshot/${pkgname}-${version}.tar.gz"
|
|
checksum=523ae1ba84b558fab3598f3d38885138c4df755cda403136102143f569b40162
|
|
|
|
post_extract() {
|
|
sed -i -e '/VERSION/{s/0.0/1.0/}' \
|
|
-e '/CFLAGS/{s/=/+=/}' \
|
|
-e 's/^LDFLAGS/#LDFLAGS/g' config.mk
|
|
}
|
|
|
|
do_build() {
|
|
make CC="$CC" LDFLAGS="$LDFLAGS" ${makejobs}
|
|
}
|
|
|
|
do_install() {
|
|
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
|
vlicense LICENSE
|
|
}
|