void-packages/srcpkgs/aiccu/template

34 lines
920 B
Bash
Raw Normal View History

2014-11-04 19:25:43 +01:00
# Template file for 'aiccu'
pkgname=aiccu
version=20070115
2016-09-21 13:45:36 +02:00
revision=4
2014-11-04 19:25:43 +01:00
wrksrc=aiccu
conf_files="etc/aiccu.conf"
makedepends="gnutls-devel"
depends="iproute2"
short_desc="SixXS Automatic IPv6 Connectivity Client Utility"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD"
homepage="http://www.sixxs.net/tools/aiccu/"
distfiles="http://www.sixxs.net/archive/sixxs/aiccu/unix/${pkgname}_${version}.tar.gz"
checksum=2260f426c13471169ccff8cb4a3908dc5f79fda18ddb6a55363e7824e6c4c760
2016-09-21 13:45:36 +02:00
case "$XBPS_TARGET_MACHINE" in
*-musl) CFLAGS+="-D_LINUX_IF_ETHER_H";;
esac
2014-11-04 19:25:43 +01:00
post_extract() {
sed -i 's/\$(CC) \$(CFLAGS) \$(LDFLAGS) -o $@ \$(OBJS)/$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)/; /strip/d' unix-console/Makefile
}
2015-06-06 17:28:17 +02:00
do_build() {
make ${makejobs} CC="$CC" LD="$LD" RPM_OPT_FLAGS="$CFLAGS"
}
2014-11-04 19:25:43 +01:00
do_install() {
vbin unix-console/aiccu
vinstall doc/aiccu.conf 0640 etc
vman doc/aiccu.1
vlicense doc/LICENSE
}