updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lib32-libpcap / PKGBUILD
blobdf8ebac9fd3cbab6719fc638404ea4b7e4d30846
1 # lib32-libpcap Maintainer: Bill Fraser <wfraser@codewise.org>
2 # libpcap PKGBUILD Maintainer: Thomas Bächler <thomas@archlinux.org>
4 _pkgbasename=libpcap
5 pkgname=lib32-libpcap
6 pkgver=1.1.1
7 pkgrel=2
8 pkgdesc="A system-independent interface for user-level packet capture"
9 arch=('x86_64')
10 url="http://www.tcpdump.org/"
11 license=('BSD')
12 depends=('lib32-glibc' 'libnl' 'sh' $_pkgbasename)
13 makedepends=('flex')
14 source=(http://www.tcpdump.org/release/libpcap-${pkgver}.tar.gz)
15 sha256sums=('508cca15547e55d1318498b838456a21770c450beb2dc7d7d4a96d90816e5a85')
17 build() {
18   export CC="gcc -m32"
19   export CXX="g++ -m32"
20   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
22   cd ${srcdir}/${_pkgbasename}-${pkgver}
23   ./configure --prefix=/usr --libdir=/usr/lib32 --enable-ipv6
24   make
27 package() {
28   cd ${srcdir}/${_pkgbasename}-${pkgver}
29   
30   make DESTDIR=${pkgdir} install
31   rm -rf ${pkgdir}/usr/lib32/libpcap.a
32   
33   rm -rf ${pkgdir}/usr/{include,share,bin}
35   mkdir -p "$pkgdir/usr/share/licenses"
36   ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"