jobcore/libpcap/PKGBUILD
2024-09-01 02:20:26 +03:00

62 lines
2.3 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libpcap
pkgver=1.10.5
pkgrel=02
pkgdesc='A system-independent interface for user-level packet capture - without ipv6 and dbus need'
url="https://www.tcpdump.org/"
_url=https://github.com/the-tcpdump-group/libpcap
depends=(glibc libnl sh)
makedepends=(bluez-libs git)
provides=(libpcap.so)
#options=(debug)
#source=("https://www.tcpdump.org/release/${pkgname}-${pkgver}.tar.gz"{,.sig})
source=(git+$_url?signed#tag=$pkgname-$pkgver)
prepare() {
cd $pkgname
autoreconf -fiv
}
build() {
cd $pkgname
./configure --prefix=/usr \
--disable-ipv6 \
--enable-bluetooth \
--enable-usb \
--disable-dbus \
--with-libnl
make
}
package() {
# depends+=('libdbus-1.so')
cd $pkgname
make DESTDIR="$pkgdir" install
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
install -vDm 644 {CHANGES,{CONTRIBUTING,README}.md} -t "${pkgdir}/usr/share/doc/${pkgname}/"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(BSD-3-Clause)
validpgpkeys=('1F166A5742ABB9E0249A8D30E089DEF1D9C15D0D') # The Tcpdump Group
#sha512sums=('b07d570933ccfc671c66e9355fb84b087dfc144f41e4088c253f544bfbecc71f38aac33ac66b2c0510422381e4c53f2499214e046146a781af050e76b3f774e8')
#b2sums=('41a719c1eb22f411c133973d8971ff8c4de6d940ceb83acc5bfd9942bf337f12db55315a808caa907cdc7c14d20a7fae9d554aca945f97a0bbeee0b6c0d2f23c')
# arch sums differ ... so much for securing the source, they change one dot in the source of a published release and out they go
sha256sums=('0474ea2c3e8b1ffe553d11427684f4cad4cc3ba513b60a86127f9f624d9e4a7c')
sha512sums=('476ea9e4f56ac45c695ea4e2ccdc12e296e7f4474b61219a140eb3141d82e230fb7a5e736700c53501fd6ecabfd3859ec6131386786ea8eb9606d87d62789a6d')
b2sums=('c4ed5623cf95dc66d43bf56cd3a62135accba139f716af0e9aba6288d01823c4f4d5b96afce274b1cbd1750a9fc1cacfae10e5ab59309b6fba69cdcb05f897e2')
## 8782da8fa4993d680509fafd04aadd8e3b70d11f2f2e02843f7d034eb289681c libpcap-1.10.5-02-x86_64.pkg.tar.lz