blob: 720f589e56fc8f816cd98ea8b51ea5005a16185b (
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
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=libpcap-git
pkgver=1.8.1.r205.g69fcdc66
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')
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"
./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"
}
|