void-packages/srcpkgs/libiscsi/template

35 lines
809 B
Bash

# Template file for 'libiscsi'
pkgname=libiscsi
version=1.18.0
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool"
short_desc="ISCSI client library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2, LGPL-2.1"
homepage="https://github.com/sahlberg/libiscsi"
distfiles="https://github.com/sahlberg/libiscsi/archive/${version}.tar.gz"
checksum=464d104e12533dc11f0dd7662cbc2f01c132f94aa4f5bd519e3413ef485830e8
pre_configure() {
./autogen.sh
}
libiscsi-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}
libiscsi-tools_package() {
short_desc+=" - tools"
pkg_install() {
vmove usr/bin
vmove usr/share/man
}
}