Date: Wednesday, February 1, 2023 @ 08:08:38
Author: eworm
Revision: 1391689
archrelease: copy trunk to community-testing-x86_64
Added:
libdnet/repos/community-testing-x86_64/
libdnet/repos/community-testing-x86_64/PKGBUILD
(from rev 1391688, libdnet/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: libdnet/repos/community-testing-x86_64/PKGBUILD (from rev 1391688,
libdnet/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2023-02-01 08:08:38 UTC (rev 1391689)
@@ -0,0 +1,43 @@
+# Maintainer: Sergej Pupykin <[email protected]>
+# Contributor: James Fryman <[email protected]>
+
+pkgname=libdnet
+pkgver=1.16.3
+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=('83171a9f6e96d7a5047d6537fce4c376bdf6d867f8d49cf6ba434a0f3f7b45c1')
+
+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
+}