void-packages/srcpkgs/cracklib/template
2018-11-13 09:44:41 +01:00

50 lines
1.4 KiB
Bash

# Template file for 'cracklib'
pkgname=cracklib
version=2.9.6
revision=2
lib32disabled=yes
create_wrksrc=yes
build_wrksrc="${pkgname}-${version}"
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.eu>"
license="LGPL-2.1"
homepage="https://github.com/cracklib/cracklib"
distfiles="
https://github.com/cracklib/cracklib/releases/download/cracklib-${version}/cracklib-${version}.tar.gz
https://github.com/cracklib/cracklib/releases/download/cracklib-${version}/cracklib-words-${version}.bz2"
checksum="17cf76943de272fd579ed831a1fd85339b393f8d00bf9e0d17c91e972f583343
460307bb9b46dfd5068d62178285ac2f70279e64b968972fe96f5ed07adc1a77"
pre_configure() {
autoreconf -fi
}
post_install() {
vinstall ${wrksrc}/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
}
}
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*"
}
}