archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libpcap / trunk / PKGBUILD
blob684e668d3353d63da7a84340ccda067fe238756c
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Bartłomiej Piotrowski <bpiotrowski@mirantis.com>
3 # Contributor: Thomas Bächler <thomas@archlinux.org>
5 pkgname=libpcap
6 pkgver=1.10.4
7 pkgrel=1
8 pkgdesc='A system-independent interface for user-level packet capture'
9 arch=(x86_64)
10 url='https://www.tcpdump.org/'
11 license=(BSD)
12 depends=(
13   glibc
14   libnl
15   sh
17 makedepends=(
18   bluez-libs
19   dbus
21 provides=(libpcap.so)
22 source=(https://www.tcpdump.org/release/$pkgname-$pkgver.tar.gz{,.sig})
23 sha512sums=('1f6d6ddd07dae7c557054cb246437ecdaf39d579592a5a6bdf1144eea6cb5a779ac4ca647cfed11ec1b0bb18efc63b845444e497070bacefaaed19a5787ae5e1'
24             'SKIP')
25 b2sums=('05a7eafc1e1817f7844008db89d8fb10cd2525c22f7ee6c9e3d582b14229412f38ccced5e9d80a96dd459ef9eab12eccb5c1dd4978ddc9f66267469212005e4c'
26         'SKIP')
27 validpgpkeys=('1F166A5742ABB9E0249A8D30E089DEF1D9C15D0D') # The Tcpdump Group
29 prepare() {
30   cd $pkgname-$pkgver
31   autoreconf -fiv
34 build() {
35   local configure_options=(
36     --prefix=/usr
37     --enable-ipv6
38     --enable-bluetooth
39     --enable-usb
40     --with-libnl
41   )
43   cd $pkgname-$pkgver
44   ./configure "${configure_options[@]}"
45   make
48 package() {
49   depends+=(libdbus-1.so)
51   cd $pkgname-$pkgver
52   make DESTDIR="$pkgdir" install
53   install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
54   install -vDm 644 {CHANGES,{CONTRIBUTING,README}.md} -t "$pkgdir/usr/share/doc/$pkgname/"