[arch-commits] Commit in libnftnl/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Sébastien Luttringer
seblu at archlinux.org
Mon May 31 00:35:41 UTC 2021
Date: Monday, May 31, 2021 @ 00:35:41
Author: seblu
Revision: 416860
archrelease: copy trunk to testing-x86_64
Added:
libnftnl/repos/testing-x86_64/
libnftnl/repos/testing-x86_64/PKGBUILD
(from rev 416859, libnftnl/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: libnftnl/repos/testing-x86_64/PKGBUILD (from rev 416859, libnftnl/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2021-05-31 00:35:41 UTC (rev 416860)
@@ -0,0 +1,45 @@
+# Maintainer: Sébastien Luttringer
+
+pkgname=libnftnl
+pkgver=1.2.0
+pkgrel=1
+pkgdesc='Netfilter library providing interface to the nf_tables subsystem'
+arch=('x86_64')
+url='https://netfilter.org/projects/libnftnl/'
+license=('GPL2')
+depends=('libmnl')
+validpgpkeys=('37D964ACC04981C75500FB9BD55D978A8A1420E4') # Netfilter Core Team
+source=("https://netfilter.org/projects/libnftnl/files/libnftnl-$pkgver.tar.bz2"{,.sig})
+sha256sums=('90b01fddfe9be8c3245c3ba5ff5a4424a8df708828f92b2b361976b658c074f5'
+ 'SKIP')
+
+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
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list