summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12017-08-13 16:27:19 +0800
committerChocobo12017-08-13 16:38:22 +0800
commit70ceeacf1d843dd91b065e2a5421f1ac3e16007e (patch)
treed0d980c3cb5976bb605080fb525b512abbf0738d
downloadaur-70ceeacf1d843dd91b065e2a5421f1ac3e16007e.tar.gz
newpkg: libpcap-git 1.8.1.r199.gc955dc6f-1
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD42
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..94ff7e23afe
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = libpcap-git
+ pkgdesc = A portable C/C++ library for network traffic capture
+ pkgver = 1.8.1.r199.gc955dc6f
+ pkgrel = 1
+ url = http://www.tcpdump.org/
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ makedepends = bluez-libs
+ depends = glibc
+ depends = libnl
+ depends = libusbx
+ depends = dbus
+ provides = libpcap
+ conflicts = libpcap
+ source = git+https://github.com/the-tcpdump-group/libpcap.git
+ sha256sums = SKIP
+
+pkgname = libpcap-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2c96416b299
--- /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"
+}