57 lines
1.5 KiB
Bash
57 lines
1.5 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=libnftnl
|
|
pkgver=1.2.7
|
|
pkgrel=01
|
|
pkgdesc='Netfilter library providing interface to the nf_tables subsystem'
|
|
url='https://netfilter.org/projects/libnftnl/'
|
|
depends=('libmnl')
|
|
source=("https://netfilter.org/projects/libnftnl/files/libnftnl-$pkgver.tar.xz"{,.sig})
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
# apply patch from the source array (should be a pacman feature)
|
|
local src
|
|
for src in "${source[@]}"; do
|
|
src="${src%%::*}"
|
|
src="${src##*/}"
|
|
[[ $src = *.patch ]] || continue
|
|
msg2 "Applying patch $src..."
|
|
patch -Np1 < "../$src"
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname-$pkgver
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('GPL2')
|
|
|
|
validpgpkeys=('37D964ACC04981C75500FB9BD55D978A8A1420E4') # Netfilter Core Team
|
|
|
|
sha256sums=(9122774f968093d5c0bacddd67de480f31fa4073405a7fc058a34b0f387aecb3 # libnftnl-1.2.7.tar.xz
|
|
d1d15b368a96bf72e7edf285ed5077148f0b070e3e4256905d41a2cbcaa54b10) # libnftnl-1.2.7.tar.xz.sig
|
|
|
|
## aefdf60a167eac9eb891ab2fed6e3292836fd2cac5c7ea9e336ee308720bfd59 libnftnl-1.2.7-01-x86_64.pkg.tar.lz
|
|
|