aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libpwquality/APKBUILD
blob: 22912cfe51186d60cf742b85f79520ef57f69e08 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=libpwquality
pkgver=1.2.4
pkgrel=0
pkgdesc="A library for password generation and password quality checking"
url="http://libpwquality.fedorahosted.org/"
arch="all"
license="BSD or GPLv2+"
depends=""
depends_dev="cracklib-dev"
makedepends="$depends_dev python-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc py-pwquality:_py"
source="http://fedorahosted.org/releases/l/i/libpwquality/libpwquality-$pkgver.tar.bz2"

_builddir="$srcdir"/libpwquality-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}
_py() {
	pkgdesc="Python bindings for the libpwquality library"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}

md5sums="5c8b1d984a9c184fc62a4d07bb36b922  libpwquality-1.2.4.tar.bz2"
sha256sums="9ad67be364a66dc8b334a473c77d9f531137ee0e9d85d81f567f410a375857c7  libpwquality-1.2.4.tar.bz2"
sha512sums="63ead296320e8eadc1a3341c28b015f9dbbf30e610e9226a11018d81aeb412d0e211753ebdb45f959c35cedfc6ed580bba9e6b0f8822c3b5f38062428f637049  libpwquality-1.2.4.tar.bz2"