void-packages/srcpkgs/hnb/template

29 lines
833 B
Bash

# Template file for 'hnb'
pkgname=hnb
version=1.9.17
revision=2
makedepends="ncurses-devel"
short_desc="A curses program to structure many kinds of data in one place"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="GPL-2"
homepage="http://hnb.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/hnb/hnb/${version}/hnb-${version}.tar.gz"
checksum=c233c00aaef5b7fb93759d7888c885f99f40aec689a7f3e0d5d8b5797bf80cd4
post_extract() {
sed -i '/CFLAGS *=/s/$/ $(CCFLAGS)/' src/Makefile src/libcli/Makefile
sed -i '/LIBS=/s/$/ $(LDFLAGS)/' src/Makefile
}
do_build() {
make -C src ${makejobs} CC="$CC" CCFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
make -C util ${makejobs} CC="$CC" CCFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
}
do_install() {
vbin src/hnb
vbin util/asc2c
vdoc doc/Documentation.hnb
vdoc doc/Documentation.html
vman doc/hnb.1
}