apg: pass CFLAGS and LDFLAGS, clean up.

This commit is contained in:
Christian Neukirchen 2016-05-26 19:44:21 +02:00
parent c95e0cc323
commit 79b4b00a0f

View file

@ -1,7 +1,7 @@
# Template file for 'apg'
pkgname=apg
version=2.2.3
revision=3
revision=4
short_desc="Automated Password Generator"
homepage="http://www.adel.nursat.kz/apg/"
license="BSD"
@ -10,13 +10,13 @@ distfiles="http://www.adel.nursat.kz/apg/download/apg-$version.tar.gz"
checksum=69c9facde63958ad0a7630055f34d753901733d55ee759d08845a4eda2ba7dba
do_build() {
sed -i 's:^#\(CS_LIBS = -lnsl\)$:\1:' Makefile
make CC="$CC" ${makejobs}
make CC="$CC" FLAGS="$CFLAGS" LIBM="-lm $LDFLAGS" ${makejobs}
}
do_install() {
for i in apg apgbfm; do
vinstall $i 755 usr/bin
vinstall doc/man/$i.1 744 usr/share/man/man1
done
vbin apg
vbin apgbfm
vman doc/man/apg.1
vman doc/man/apgbfm.1
vlicense COPYING LICENSE
}