# Maintainer: Leonardo Arena pkgname=open-isns pkgver=0.99 pkgrel=0 pkgdesc="iSNS server and client for Linux" url="https://github.com/open-iscsi/open-isns" arch="all" license="LGPL-2.1-or-later" makedepends="autoconf automake openssl-dev musl-dev" options="!check" subpackages="$pkgname-dev $pkgname-doc $pkgname-lib" source="$pkgname-$pkgver.tar.gz::https://github.com/open-iscsi/open-isns/archive/v$pkgver.tar.gz " prepare() { default_prepare update_config_sub autoreconf -fi } build() { ./configure \ --host=$CHOST \ --build=$CBUILD \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-shared make all } package() { make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install_hdrs make DESTDIR="$pkgdir" install_lib rm -rf "$pkgdir"/usr/lib/systemd rm -rf "$pkgdir"/usr/lib/*.a } lib() { cd "$builddir" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/lib "$subpkgdir"/usr } sha512sums="90a2297535c5e939f83c761173ce5f5f88e68adc31e41e833b23d07b6dc6959572ae7184db0084b861918199a877b251ebae4b4a7456fdd8c93400dc8457adc9 open-isns-0.99.tar.gz"