contrib/cracklib/Pkgfile

25 lines
694 B
Plaintext

# Description: CrackLib Library and Dictionaries
# URL: https://github.com/cracklib/cracklib
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on:
name=cracklib
version=2.9.7
release=1
source=(https://github.com/cracklib/cracklib/releases/download/v$version/$name-$version.tar.gz)
build() {
cd $name-$version
./configure --prefix=/usr \
--sbindir=/usr/bin \
--without-python
make
make DESTDIR=$PKG install
mkdir -p $PKG/usr/share/dict
ln -sf /usr/share/cracklib/cracklib-small $PKG/usr/share/dict/cracklib-small
sh ./util/cracklib-format dicts/cracklib-small \
| sh ./util/cracklib-packer $PKG/usr/share/cracklib/pw_dict
rm -r $PKG/usr/share/locale/
}