upgpkg: ocaml-topkg 1.0.5-2
[arch-packages.git] / tcpdump / repos / extra-x86_64 / PKGBUILD
blobc8adb2223ed137605cb960bf0bd0075108f87024
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Gaetan Bisson <bisson@archlinux.org>
3 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
4 # Contributor: dorphell <dorphell@archlinux.org>
6 pkgname=tcpdump
7 pkgver=4.99.4
8 pkgrel=1
9 pkgdesc='Powerful command-line packet analyzer'
10 url="https://www.tcpdump.org/"
11 arch=(x86_64)
12 license=(BSD)
13 depends=(glibc)
14 makedepends=(
15   cmake
16   libpcap
17   libcap-ng
18   openssl
20 source=(https://www.tcpdump.org/release/$pkgname-$pkgver.tar.gz{,.sig})
21 sha512sums=('cb51e19574707d07c0de90dd4c301955897f2c9f2a69beb7162c08f59189f55625346d1602c8d66ab2b4c626ea4b0df1f08ed8734d2d7f536d0a7840c2d6d8df'
22             'SKIP')
23 b2sums=('f100e10774574ef04a770bc30d4e2d06fd0f1f16a7b2c88848be6e8290cc4838666ff378d9f78fdc418f4ffab9716a11214edc3588c292cb5ff39636cd7cfd2d'
24         'SKIP')
25 validpgpkeys=('1F166A5742ABB9E0249A8D30E089DEF1D9C15D0D') # The Tcpdump Group (Package signing key) <release@tcpdump.org>
27 build() {
28   local cmake_options=(
29     -DCMAKE_INSTALL_PREFIX=/usr
30     -DCMAKE_BUILD_TYPE=None
31     -Wno-dev
32     -B build
33     -S $pkgname-$pkgver
34   )
36   cmake "${cmake_options[@]}"
37   cmake --build build --verbose
40 check() {
41   make VERBOSE=1 check -C build
44 package() {
45   depends+=(
46     libpcap libpcap.so
47     libcap-ng libcap-ng.so
48     openssl libcrypto.so
49   )
51   DESTDIR="$pkgdir" cmake --install build
52   install -vDm 644 $pkgname-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"