[arch-commits] Commit in libnftnl/repos (3 files)

Christian Hesse eworm at gemini.archlinux.org
Wed Aug 10 07:38:16 UTC 2022


    Date: Wednesday, August 10, 2022 @ 07:38:16
  Author: eworm
Revision: 452504

archrelease: copy trunk to testing-x86_64

Added:
  libnftnl/repos/testing-x86_64/
  libnftnl/repos/testing-x86_64/PKGBUILD
    (from rev 452503, libnftnl/trunk/PKGBUILD)
  libnftnl/repos/testing-x86_64/keys/

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: libnftnl/repos/testing-x86_64/PKGBUILD (from rev 452503, libnftnl/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2022-08-10 07:38:16 UTC (rev 452504)
@@ -0,0 +1,45 @@
+# Maintainer: Sébastien Luttringer
+
+pkgname=libnftnl
+pkgver=1.2.3
+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=('e916ea9b79f9518560b9a187251a7c042442a9ecbce7f36be7908888605d0255'
+            '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