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