void-packages/srcpkgs/libsasl/template
2021-07-09 17:47:19 -03:00

40 lines
1.2 KiB
Bash

# Template file for 'libsasl'
pkgname=libsasl
version=2.1.27
revision=2
wrksrc="cyrus-sasl-${version}"
build_style=gnu-configure
configure_args="--enable-cram --enable-digest --enable-auth-sasldb
--enable-plain --enable-anon --enable-login --enable-gssapi --enable-ntlm
--with-configdir=/etc/sasl2:/etc/sasl:/usr/lib/sasl2
--disable-otp --disable-srp --disable-srp-setpass --disable-krb4
--with-devrandom=/dev/random"
hostmakedepends="automake libtool pkg-config"
makedepends="db-devel"
short_desc="Cyrus SASL - runtime shared libraries"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause-Attribution"
homepage="https://www.cyrusimap.org/sasl/"
distfiles="https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-${version}/cyrus-sasl-${version}.tar.gz"
checksum=26866b1549b00ffd020f188a43c258017fa1c382b3ddadd8201536f72efb05d5
pre_configure() {
autoreconf -fi
}
post_install() {
# We are only interested in libsasl.
rm -rf ${DESTDIR}/usr/{bin,sbin,share,lib/sasl2}
vlicense COPYING
}
libsasl-devel_package() {
depends="libsasl>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}