# Contributor: Sean McAvoy # Maintainer: Sean McAvoy pkgname=libnbd pkgver=1.14.1 pkgrel=1 pkgdesc="NBD client library in userspace" url="https://github.com/libguestfs/libnbd" arch="all" license="LGPL-2.0-or-later" makedepends=" autoconf automake bash-completion-dev gnutls-dev libtool linux-headers perl python3-dev " checkdepends="qemu-img bash python3" subpackages="$pkgname-dev $pkgname-doc $pkgname-bash-completion" source=" https://download.libguestfs.org/libnbd/${pkgver%.*}-stable/libnbd-$pkgver.tar.gz " # secfixes: # 1.14.1-r0: # - CVE-2022-0485 # 1.10.5-r0: # - CVE-2021-20286 prepare() { default_prepare autoreconf -fi } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --disable-golang make } check() { make check } package() { make DESTDIR=$pkgdir install } sha512sums=" 9d95cf7a66926d00ec9aacfc6d04f2dc885ccfed07c78f1e6693190dd14132d30d6d1ff7d46e46007732a8a20a9fbf648775bc0b3371ad49eff4ce1e44e47209 libnbd-1.14.1.tar.gz "