lib32-libpcap-git

LOW
maintainer Orion-zhen 0 votes scanned 2026-09-08 13:17:19.099707
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: Orion-zhen <https://github.com/Orion-zhen>
2# Contributor: David Runge <dvzrv@archlinux.org>
3# Contributor: Sven-Hendrik Haase <svenstaro@archlinux.org>
4# Contributor: Christian Hesse <mail@eworm.de>
5# Contributor: Bill Fraser <wfraser@codewise.org>
6# Contributor: Thomas Bächler <thomas@archlinux.org>
7
8pkgname=lib32-libpcap-git
9_pkgname=libpcap
10pkgver=1.10.7.r2149.g84f140f
11pkgrel=1
12pkgdesc="A system-independent interface for user-level packet capture (32-bit)"
13arch=(x86_64)
14url="http://www.tcpdump.org/"
15_url=https://github.com/the-tcpdump-group/libpcap
16license=(BSD-3-Clause)
17depends=(
18 lib32-glibc
19 lib32-libnl
20 $_pkgname
21)
22makedepends=(
23 bluez-libs
24 git
25 lib32-dbus
26)
27provides=(
28 lib32-libpcap
29 libpcap.so
30)
31conflicts=(lib32-libpcap)
32options=(!staticlibs)
33source=("$_pkgname::git+$_url.git")
34sha512sums=('SKIP')
35
36pkgver() {
37 cd "$_pkgname"
38
39 local _tag _rev _hash
40 _tag=$(git tag -l --sort=-version:refname | grep -E '^libpcap-[0-9]+(\.[0-9]+)*$' | head -n1)
41 _rev=$(git rev-list --count "$_tag"..HEAD)
42 _hash=$(git rev-parse --short=7 HEAD)
43 printf '%s.r%s.g%s\n' "${_tag#libpcap-}" "$_rev" "$_hash"
44}
45
46prepare() {
47 cd "$_pkgname"
48 autoreconf -fiv
49}
50
51build() {
52 local configure_options=(
53 --prefix=/usr
54 --libdir=/usr/lib32
55 --enable-ipv6
56 --enable-bluetooth
57 --enable-usb
58 --with-libnl
59 )
60 export CC="gcc -m32"
61 export CXX="g++ -m32"
62 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
63
64 cd "$_pkgname"
65 ./configure "${configure_options[@]}"
66 make
67}
68
69package() {
70 depends+=(
71 lib32-dbus libdbus-1.so
72 )
73
74 cd "$_pkgname"
75
76 make DESTDIR="$pkgdir" install
77
78 # remove files provided by libpcap
79 rm -rf "$pkgdir/usr/"{include,share,bin}
80
81 install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
82 install -vDm 644 {CHANGES,{CONTRIBUTING,README}.md} -t "$pkgdir/usr/share/doc/$pkgname/"
83}
84

Scan history

Scanned at (UTC)SeverityRules
2026-09-08 13:17:19 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion