blob: 956c6c7fb6ba5c574303179fe8c0d6703e484c30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libpwquality
pkgver=1.4.0
pkgrel=1
pkgdesc="Password quality checking library"
url="https://github.com/libpwquality/libpwquality"
arch="all"
license="BSD-3-Clause"
makedepends="cracklib-dev python3-dev linux-pam-dev"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc py3-$pkgname:_py3 $pkgname-lang"
source="https://github.com/libpwquality/libpwquality/releases/download/libpwquality-$pkgver/libpwquality-$pkgver.tar.bz2"
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--enable-python-bindings \
--with-python-binary=python3 \
--enable-pam
make
}
package() {
make DESTDIR="$pkgdir" install
}
_py3() {
pkgdesc="$pkgdesc - Python3 bindings"
depends="$pkgname=$pkgver-r$pkgrel python3"
mkdir -p "$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}
sha512sums="b8049f8b71bbfd4d345dbd4c4cffd29e9029b0fca4c95527af54d11a3b06e4708236b630df6c66738368298679c96cb3bf26b1b5d95cb3c5f7e1073cab8a98d9 libpwquality-1.4.0.tar.bz2"
|