34 lines
1 KiB
Text
34 lines
1 KiB
Text
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
|
|
# Contributor: Federico Quagliata (quaqo) <quaqo@despammed.com>
|
|
|
|
pkgname=cracklib
|
|
pkgver=2.10.1
|
|
pkgrel=1
|
|
pkgdesc="Password Checking Library"
|
|
arch=('x86_64')
|
|
license=('GPL-2.0-or-later')
|
|
url="https://github.com/cracklib/cracklib"
|
|
depends=('glibc' 'zlib')
|
|
source=(https://github.com/cracklib/cracklib/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
|
|
b2sums=('8b9bd0a205d1213321e2c45369ec9ef88f00dff47fdb63bec2aaf6da598e47ffdcc123b96a6a0278ceb15b0522fbc73de4a2047174f14b74d8ef7d9d04d74ca6')
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
./configure --prefix=/usr --sbindir=/usr/bin --without-python
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname-$pkgver
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
# symlink cracklib-small #34778
|
|
mkdir -p "$pkgdir"/usr/share/dict
|
|
ln -sf /usr/share/cracklib/cracklib-small "$pkgdir"/usr/share/dict/cracklib-small
|
|
sh ./util/cracklib-format dicts/cracklib-small \
|
|
| sh ./util/cracklib-packer "$pkgdir"/usr/share/cracklib/pw_dict
|
|
}
|