OCaml 5.0.0 rebuild: Fix Pervasives deprecation
[arch-packages.git] / libpwquality / trunk / PKGBUILD
blob4cb3f75362ca7c333173768b31b029a073fc942e
1 # Maintainer: Jan de Groot <jgc@archlinux.org>
3 pkgname=libpwquality
4 pkgver=1.4.5
5 pkgrel=2
6 pkgdesc="Library for password quality checking and generating random passwords"
7 arch=('x86_64')
8 url="https://github.com/libpwquality/libpwquality"
9 license=('GPL')
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')
17 prepare() {
18   cd $pkgname-$pkgver
19   sed '/mr_IN/d' -i po/LINGUAS
22 build() {
23   cd $pkgname-$pkgver
24   ./configure --prefix=/usr \
25     --sysconfdir=/etc \
26     --localstatedir=/var \
27     --with-python-binary=python3
28   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
29   make
32 package() {
33   cd $pkgname-$pkgver
34   make DESTDIR="$pkgdir" install
35   install -m755 -d "$pkgdir"/etc/security/pwquality.conf.d