summaryrefslogtreecommitdiff
path: root/user/libpwquality/APKBUILD
blob: af76e2f49f4cbb941165f20a83ad1b2817daa6b4 (plain) (blame)
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
40
41
42
43
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libpwquality
pkgver=1.4.1
pkgrel=0
pkgdesc="Password quality checking library"
url=" "
arch="all"
license="BSD-3-Clause OR GPL-2.0+"
depends=""
makedepends="cracklib-dev linux-pam-dev python3-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang py3-pwquality:py3"
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-pam \
		--with-python-binary=python3
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

py3() {
	pkgdesc="$pkgdesc (Python 3 bindings)"
	depends="python3"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib/
}

sha512sums="0bbec7e79a4db56c2cbda65c36003758a1044eee2ac8c678447d96d3cddf034a3196a7d8cd7972e9f50701391b8b81e2c3769fd81c4e4605fed96efd120ff257  libpwquality-1.4.1.tar.bz2"