void-packages/srcpkgs/libasr/template

38 lines
888 B
Bash

# Template file for 'libasr'
pkgname=libasr
version=1.0.2
revision=4
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=gnu-configure
hostmakedepends="automake libtool"
makedepends="libressl-devel"
short_desc="Simple and portable asynchronous resolver library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://www.opensmtpd.org/"
distfiles="https://github.com/OpenSMTPD/${pkgname}/archive/${pkgname}-${version}.tar.gz"
checksum=4ab54264206e255fd6c2de982764bb5ce7857ec8f649ad3ee45771244593b6e1
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
}
}