Date: Sunday, April 16, 2023 @ 21:01:25
  Author: eworm
Revision: 1446579

archrelease: copy trunk to community-testing-x86_64

Added:
  libdnet/repos/community-testing-x86_64/
  libdnet/repos/community-testing-x86_64/PKGBUILD
    (from rev 1446578, libdnet/trunk/PKGBUILD)

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

Copied: libdnet/repos/community-testing-x86_64/PKGBUILD (from rev 1446578, 
libdnet/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD                           (rev 0)
+++ community-testing-x86_64/PKGBUILD   2023-04-16 21:01:25 UTC (rev 1446579)
@@ -0,0 +1,43 @@
+# Maintainer: Sergej Pupykin <[email protected]>
+# Contributor: James Fryman <[email protected]>
+
+pkgname=libdnet
+pkgver=1.16.4
+pkgrel=1
+pkgdesc='A simplified, portable interface to several low-level networking 
routines'
+arch=('x86_64')
+checkdepends=('check')
+license=('BSD')
+url='https://github.com/ofalk/libdnet'
+source=("https://github.com/ofalk/${pkgname}/archive/${pkgname}-${pkgver}.tar.gz";)
+sha256sums=('7df1f0a3db9cf03b48cf50ab273fd6a20c1be99eb9344b9663fe3fd9ed9dab65')
+
+prepare() {
+  cd "$srcdir"/$pkgname-$pkgname-$pkgver
+
+  autoreconf -I config --force --install
+}
+
+build() {
+  cd "$srcdir"/$pkgname-$pkgname-$pkgver
+
+  ./configure \
+    --prefix=/usr \
+    --sbindir=/usr/bin
+  make
+}
+
+check() {
+  cd "$srcdir"/$pkgname-$pkgname-$pkgver
+
+  # fails in build container
+  #make check
+}
+
+package() {
+  cd "$srcdir"/$pkgname-$pkgname-$pkgver
+
+  make DESTDIR="$pkgdir/" install
+
+  install -D -m0644 LICENSE "$pkgdir"/usr/share/licenses/libdnet/license
+}

Reply via email to