# Maintainer: Natanael Copa pkgname=libpcap pkgver=1.6.1 _sover=1.0.0 pkgrel=0 pkgdesc="A system-independent interface for user-level packet capture" url="http://www.tcpdump.org/" arch="all" license="BSD" depends= makedepends="bison flex autoconf" source="http://www.tcpdump.org/release/$pkgname-$pkgver.tar.gz " subpackages="$pkgname-doc $pkgname-dev" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" update_config_sub || return 1 for i in "$srcdir"/*.patch; do [ -r "$i" ] || continue msg "Applying $i..." patch -p1 -i $i || return 1 done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --enable-ipv6 \ || return 1 # seems to be problem with timestamps sleep 1 ./config.status make all shared || return 1 } package() { cd "$_builddir" mkdir -p "$pkgdir/usr/bin" make -j1 DESTDIR="$pkgdir" install install-shared } md5sums="5eb05edf6b6c6e63d536d1c9fbfb2f7c libpcap-1.6.1.tar.gz" sha256sums="116cbb3ac9e96d5dd7b39638a2f894a67fa3dcf06d794e6dae2b9a942ad13476 libpcap-1.6.1.tar.gz" sha512sums="721f20ccf93d0a033945a8ed618dad2aeb7334eea26ee128f2eebf65e19bd6523698191e59e727adb83b96f4ca45f2f218f9af94af9923453c06a57cab36487b libpcap-1.6.1.tar.gz"