void-packages/srcpkgs/libsasl/template

42 lines
1.2 KiB
Bash

# Template file for 'libsasl'
# keep in sync with cyrus-sasl
pkgname=libsasl
version=2.1.28
revision=1
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
ac_cv_gssapi_supports_spnego=yes"
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=7ccfc6abd01ed67c1a0924b353e526f1b766b21f42d4562ee635a8ebfc5bb38c
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
}
}