void-packages/srcpkgs/libasr/template
2020-02-25 13:11:09 +01:00

35 lines
854 B
Bash

# Template file for 'libasr'
pkgname=libasr
version=1.0.4
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool"
makedepends="libressl-devel"
short_desc="Simple and portable asynchronous resolver library"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-2-Clause"
homepage="https://www.opensmtpd.org/"
distfiles="https://github.com/OpenSMTPD/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.gz"
checksum=19fb6bed10d15c9775c8d008cd1130155917ae4e801c729fe85e6d88a545dab4
if [ "$XBPS_TARGET_LIBC" != "musl" ]; then
CFLAGS="-DHAVE_RES_RANDOMID"
fi
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
}
}