upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / lib32-libpcap / trunk / PKGBUILD
blob117e8056f5de40dcefcb2e8498c8b8e6f9c11ffa
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
3 # Contributor: Christian Hesse <mail@eworm.de>
4 # Contributor: Bill Fraser <wfraser@codewise.org>
5 # Contributor: Thomas Bächler <thomas@archlinux.org>
7 _name=libpcap
8 pkgname=lib32-libpcap
9 pkgver=1.10.4
10 pkgrel=1
11 pkgdesc="A system-independent interface for user-level packet capture (32-bit)"
12 arch=(x86_64)
13 url="http://www.tcpdump.org/"
14 license=(BSD)
15 depends=(
16   lib32-glibc
17   lib32-libnl
18   $_name=$pkgver
20 makedepends=(
21   bluez-libs
22   lib32-dbus
24 provides=(libpcap.so)
25 options=(!staticlibs)
26 source=(https://www.tcpdump.org/release/$_name-$pkgver.tar.gz{,.sig})
27 sha512sums=('1f6d6ddd07dae7c557054cb246437ecdaf39d579592a5a6bdf1144eea6cb5a779ac4ca647cfed11ec1b0bb18efc63b845444e497070bacefaaed19a5787ae5e1'
28             'SKIP')
29 b2sums=('05a7eafc1e1817f7844008db89d8fb10cd2525c22f7ee6c9e3d582b14229412f38ccced5e9d80a96dd459ef9eab12eccb5c1dd4978ddc9f66267469212005e4c'
30         'SKIP')
31 validpgpkeys=('1F166A5742ABB9E0249A8D30E089DEF1D9C15D0D') # The Tcpdump Group (Package signing key) <release@tcpdump.org>
33 prepare() {
34   cd $_name-$pkgver
35   autoreconf -fiv
38 build() {
39   local configure_options=(
40     --prefix=/usr
41     --libdir=/usr/lib32
42     --enable-ipv6
43     --enable-bluetooth
44     --enable-usb
45     --with-libnl
46   )
47   export CC="gcc -m32"
48   export CXX="g++ -m32"
49   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
51   cd $_name-$pkgver
52   ./configure "${configure_options[@]}"
53   make
56 package() {
57   depends+=(
58     lib32-dbus libdbus-1.so
59   )
61   cd $_name-$pkgver
63   make DESTDIR="$pkgdir" install
65   # remove files provided by libpcap
66   rm -rf "$pkgdir/usr/"{include,share,bin}
68   install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
69   install -vDm 644 {CHANGES,{CONTRIBUTING,README}.md} -t "$pkgdir/usr/share/doc/$pkgname/"