void-packages/srcpkgs/libpwquality/template

42 lines
1.3 KiB
Bash

# Template file for 'libpwquality'
pkgname=libpwquality
version=1.4.5
revision=2
build_style=gnu-configure
build_helper=python3
configure_args="--disable-static --enable-pam --with-securedir=/usr/lib/security"
hostmakedepends="libtool automake gettext-devel python3 python3-setuptools"
makedepends="cracklib-devel pam-devel python3-devel"
depends="cracklib"
conf_files="/etc/security/pwquality.conf"
short_desc="Library for password quality checking and generating random passwords"
maintainer="0x5c <dev@0x5c.io>"
license="GPL-2.0-or-later"
homepage="https://github.com/libpwquality/libpwquality"
changelog="https://raw.githubusercontent.com/libpwquality/libpwquality/master/NEWS"
distfiles="https://github.com/libpwquality/libpwquality/releases/download/libpwquality-${version}/libpwquality-${version}.tar.bz2"
checksum=6fcf18b75d305d99d04d2e42982ed5b787a081af2842220ed63287a2d6a10988
pre_configure() {
autoreconf -fi
}
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*"
}
}