void-packages/srcpkgs/yaz/template

36 lines
917 B
Bash

# Template file for 'yaz'
pkgname=yaz
version=5.26.1
revision=2
build_style=gnu-configure
configure_args="--enable-shared=yaz"
hostmakedepends="bison pkg-config"
makedepends="gnutls-devel libxslt-devel"
short_desc="Toolkit supporting development of Z39.50/SRW/SRU clients and servers"
maintainer="cr6git <quark6@protonmail.com>"
license="BSD-3-Clause"
homepage="https://www.indexdata.com/resources/software/yaz/"
distfiles="http://ftp.indexdata.dk/pub/yaz/yaz-${version}.tar.gz"
checksum=ceb4367e3098bce8e09734f09c0410bd679fdc3f9423bb28d70cc15cc95b66cc
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" libexecinfo-devel"
LDFLAGS+=" -lexecinfo"
;;
esac
post_install() {
vlicense LICENSE
}
yaz-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
}
}