1 # Maintainer: Jan de Groot <jgc@archlinux.org>
6 pkgdesc="Library for password quality checking and generating random passwords"
8 url="https://github.com/libpwquality/libpwquality"
10 depends=('cracklib' 'pam')
11 optdepends=('python: Python bindings')
12 makedepends=('python')
13 backup=('etc/security/pwquality.conf')
14 source=(https://github.com/libpwquality/libpwquality/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2)
15 md5sums=('6b70e355269aef0b9ddb2b9d17936f21')
19 sed '/mr_IN/d' -i po/LINGUAS
24 ./configure --prefix=/usr \
26 --localstatedir=/var \
27 --with-python-binary=python3
28 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
34 make DESTDIR="$pkgdir" install
35 install -m755 -d "$pkgdir"/etc/security/pwquality.conf.d