void-packages/srcpkgs/cracklib/template

52 lines
1.3 KiB
Bash

# Template file for 'cracklib'
pkgname=cracklib
version=2.9.5
revision=1
lib32disabled=yes
create_wrksrc=yes
build_wrksrc="${pkgname}-${version}"
build_style=gnu-configure
configure_args="--sbindir=/usr/bin --disable-static"
hostmakedepends="libtool automake gettext-devel python-devel"
makedepends="python-devel"
short_desc="Password Checking Library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1"
homepage="http://cracklib.sourceforge.net/"
distfiles="
${SOURCEFORGE_SITE}/cracklib/${pkgname}-${version}.tar.gz
${SOURCEFORGE_SITE}/cracklib/${pkgname}-words-1.2.gz"
checksum="
59ab0138bc8cf90cccb8509b6969a024d5e58d2d02bcbdccbb9ba9b88be3fa33
9b323c100780f2a817ab3de082b8bfaa4478bfa174dcbd016810ed8be60cbe16"
pre_configure() {
autoreconf -fi
}
post_install() {
vinstall ${wrksrc}/cracklib-words-1.2 644 usr/share/cracklib cracklib-words
}
cracklib-devel_package() {
depends="zlib-devel libcracklib-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
}
}
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*"
}
}