void-packages/srcpkgs/libasr/template
Nathan Owens b620ce090b libasr: update to 1.0.3
SONAME version did not change, no need of bumping opensmtpd
2019-11-01 15:40:26 +01:00

36 lines
867 B
Bash

# Template file for 'libasr'
pkgname=libasr
version=1.0.3
revision=1
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}/releases/download/${version}/${pkgname}-${version}.tar.gz"
checksum=9cd88e0172e6d426438875e09229d1d473d56db546d02b630f9dd14db226d68d
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
}
}