diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2c96416b2993 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> + +pkgname=libpcap-git +pkgver=1.8.1.r199.gc955dc6f +pkgrel=1 +pkgdesc="A portable C/C++ library for network traffic capture" +arch=('i686' 'x86_64') +url="http://www.tcpdump.org/" +license=('BSD') +depends=('glibc' 'libnl' 'libusbx' 'dbus') +makedepends=('git' 'bluez-libs') +provides=('libpcap') +conflicts=('libpcap') +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" + + ./configure --prefix="/usr" + make +} + +check() { + cd "libpcap" + + make tests +} + +package() { + cd "libpcap" + + make DESTDIR="$pkgdir" install + install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/libpcap/LICENSE" +} |