Date: Wednesday, May 18, 2022 @ 07:09:41 Author: eworm Revision: 1207769
archrelease: copy trunk to community-testing-x86_64 Added: libdnet/repos/community-testing-x86_64/ libdnet/repos/community-testing-x86_64/PKGBUILD (from rev 1207768, libdnet/trunk/PKGBUILD) ----------+ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) Copied: libdnet/repos/community-testing-x86_64/PKGBUILD (from rev 1207768, libdnet/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-05-18 07:09:41 UTC (rev 1207769) @@ -0,0 +1,43 @@ +# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> +# Contributor: James Fryman <jfry...@gmail.com> + +pkgname=libdnet +pkgver=1.16.1 +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=('b151c4913758ef80daf4558361b4f2680a37b01d59272625bb78c77183062c63') + +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 +}