void-packages/srcpkgs/libasr/template

37 lines
883 B
Bash

# Template file for 'libasr'
pkgname=libasr
version=1.0.2
revision=2
build_style=gnu-configure
hostmakedepends="automake libtool"
makedepends="libressl-devel"
short_desc="Simple and portable asynchronous resolver library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="ISC, BSD"
homepage="https://www.opensmtpd.org/"
distfiles="https://github.com/OpenSMTPD/${pkgname}/archive/${pkgname}-${version}.tar.gz"
checksum=4ab54264206e255fd6c2de982764bb5ce7857ec8f649ad3ee45771244593b6e1
wrksrc="${pkgname}-${pkgname}-${version}"
case "$XBPS_TARGET_MACHINE" in
*-musl) ;;
*) CFLAGS="$CFLAGS -DHAVE_RES_RANDOMID"
esac
pre_configure() {
./bootstrap
}
post_install() {
vlicense LICENCE
}
libasr-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
}
}