void-packages/srcpkgs/libpwquality/template
2019-11-01 11:46:46 +01:00

45 lines
1.4 KiB
Bash

# Template file for 'libpwquality'
pkgname=libpwquality
version=1.4.2
revision=1
build_style=gnu-configure
configure_args="--disable-static --enable-pam --with-securedir=/usr/lib/security"
hostmakedepends="libtool automake gettext-devel"
makedepends="cracklib-devel pam-devel python3-devel"
conf_files="/etc/security/pwquality.conf"
short_desc="Library for password quality checking and generating random passwords"
maintainer="bra1nwave <bra1nwave@protonmail.com>"
license="GPL-2.0-or-later"
homepage="https://github.com/libpwquality/libpwquality"
changelog="https://raw.githubusercontent.com/libpwquality/libpwquality/master/NEWS"
distfiles="${homepage}/releases/download/libpwquality-${version}/libpwquality-${version}.tar.bz2"
checksum=5263e09ee62269c092f790ac159112aed3e66826a795e3afec85fdeac4281c8e
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" python3"
CFLAGS+=" -I${XBPS_CROSS_BASE}/${py3_inc}"
fi
pre_configure() {
autoreconf -fi
vsed -i python/Makefile.am -e 's|CFLAGS=.*|LDSHARED="${CC} -pthread -shared" &|g'
}
libpwquality-devel_package() {
depends="cracklib-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/man/man3
}
}
libpwquality-python3_package() {
lib32disabled=yes
short_desc+=" - Python3 bindings"
pkg_install() {
vmove "usr/lib/python3*"
}
}