void-packages/srcpkgs/cracklib/template
Jürgen Buchmüller 94127eeb6c
cracklib: fix distfile cracklib-words-2.9.6.gz
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2019-02-25 17:13:40 +01:00

48 lines
1.3 KiB
Bash

# Template file for 'cracklib'
pkgname=cracklib
version=2.9.6
revision=2
lib32disabled=yes
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"
homepage="https://github.com/cracklib/cracklib"
distfiles="
https://github.com/cracklib/cracklib/releases/download/cracklib-${version}/cracklib-${version}.tar.gz
http://mirror.netcologne.de/gentoo/distfiles/cracklib-words-${version}.gz"
checksum="17cf76943de272fd579ed831a1fd85339b393f8d00bf9e0d17c91e972f583343
27973245225eeb9d0090e97f3dea4197dec99b64d9d3a791a60298f3b021824c"
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
}
}
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*"
}
}