1 # lib32-libpcap Maintainer: Bill Fraser <wfraser@codewise.org>
2 # libpcap PKGBUILD Maintainer: Thomas Bächler <thomas@archlinux.org>
8 pkgdesc="A system-independent interface for user-level packet capture"
10 url="http://www.tcpdump.org/"
12 depends=('lib32-glibc' 'libnl' 'sh' $_pkgbasename)
14 source=(http://www.tcpdump.org/release/libpcap-${pkgver}.tar.gz)
15 sha256sums=('508cca15547e55d1318498b838456a21770c450beb2dc7d7d4a96d90816e5a85')
20 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
22 cd ${srcdir}/${_pkgbasename}-${pkgver}
23 ./configure --prefix=/usr --libdir=/usr/lib32 --enable-ipv6
28 cd ${srcdir}/${_pkgbasename}-${pkgver}
30 make DESTDIR=${pkgdir} install
31 rm -rf ${pkgdir}/usr/lib32/libpcap.a
33 rm -rf ${pkgdir}/usr/{include,share,bin}
35 mkdir -p "$pkgdir/usr/share/licenses"
36 ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"