void-packages/srcpkgs/cracklib/template

53 lines
1.3 KiB
Bash

# Template file for 'cracklib'
pkgname=cracklib
version=2.9.7
revision=1
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="libtool automake gettext-devel python"
makedepends="python-devel"
short_desc="Password Checking Library"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://github.com/cracklib/cracklib"
distfiles="https://github.com/cracklib/cracklib/releases/download/v${version}/cracklib-${version}.tar.gz
https://github.com/cracklib/cracklib/releases/download/v${version}/cracklib-words-${version}.gz"
checksum="8b6fd202f3f1d8fa395d3b7a5d821227cfd8bb4a9a584a7ae30cf62cea6287dd
7f0c45faf84a2494f15d1e2720394aca4a379163a70c4acad948186c0047d389"
lib32disabled=yes
pre_configure() {
autoreconf -fi
}
post_install() {
vinstall ../cracklib-words-${version} 644 usr/share/cracklib cracklib-words
}
cracklib-devel_package() {
depends="zlib-devel libcracklib-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}
cracklib-python_package() {
lib32disabled=yes
depends="python"
short_desc+=" - python bindings"
pycompile_module="cracklib.py"
pkg_install() {
vmove "usr/lib/python*"
}
}
libcracklib_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so*"
}
}