upgpkg: sbcl 2.3.1-1
[arch-packages.git] / cracklib / repos / core-x86_64 / PKGBUILD
blob66ebff082d0c2109d33b0e546b1e8a18fd579064
1 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
2 # Contributor: Federico Quagliata (quaqo) <quaqo@despammed.com>
4 pkgname=cracklib
5 pkgver=2.9.8
6 pkgrel=1
7 pkgdesc="Password Checking Library"
8 arch=('x86_64')
9 license=('GPL')
10 url="https://github.com/cracklib/cracklib"
11 depends=('glibc' 'zlib')
12 source=(https://github.com/cracklib/cracklib/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
13 sha256sums=('268733f8c5f045a08bf1be2950225efeb3d971e31eb543c002269d1a3d98652d')
15 build() {
16   cd $pkgname-$pkgver
17   ./configure --prefix=/usr --sbindir=/usr/bin --without-python
18   make 
21 check() {
22   cd $pkgname-$pkgver
23   make check
26 package() {
27   cd $pkgname-$pkgver
28   make DESTDIR="$pkgdir" install
29   # symlink cracklib-small #34778
30   mkdir -p "$pkgdir"/usr/share/dict
31   ln -sf /usr/share/cracklib/cracklib-small "$pkgdir"/usr/share/dict/cracklib-small
32   sh ./util/cracklib-format dicts/cracklib-small \
33     | sh ./util/cracklib-packer "$pkgdir"/usr/share/cracklib/pw_dict