archrelease: copy trunk to extra-x86_64
[arch-packages.git] / cracklib / repos / core-x86_64 / PKGBUILD
blob240deecf3cd201d7de2fae1f9f2f45403630fcd2
1 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
2 # Contributor: Federico Quagliata (quaqo) <quaqo@despammed.com>
4 pkgname=cracklib
5 pkgver=2.9.11
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=('6213b986a5209fc0d4ca93734e349b8f66b36bfe9a3fae6eead14a15d82a68dc')
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