summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a1f27a73825588eef62b059366e7f66989cf1750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libpcap-git
pkgver=1.10.0.bp.r15.ge13fde1e
pkgrel=1
pkgdesc="A portable C/C++ library for network traffic capture"
arch=('i686' 'x86_64')
url="https://www.tcpdump.org/"
license=('BSD')
depends=('glibc' 'dbus' 'libnl')
makedepends=('git' 'bluez-libs')
provides=('libpcap' 'libpcap.so')
conflicts=('libpcap')
options=('staticlibs')
source=("git+https://github.com/the-tcpdump-group/libpcap.git")
sha256sums=('SKIP')


pkgver() {
  cd "libpcap"

  git describe --long --tags | sed 's/^libpcap-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "libpcap"

  autoreconf -fi
  ./configure \
    --prefix="/usr"
  make
}

check() {
  cd "libpcap"

  make tests
}

package() {
  cd "libpcap"

  make DESTDIR="$pkgdir" install
  install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/libpcap"
}