summaryrefslogtreecommitdiffstats
path: root/main/cracklib/APKBUILD
blob: c82e9038f3bdce6271edde2c84548605e2ca7f76 (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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=cracklib
pkgver=2.8.16
pkgrel=0
pkgdesc="A library used to enforce strong passwords"
url="http://sourceforge.net/projects/cracklib"
license="GPL"
depends=""
makedepends=""
install=
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	cracklib-nls.patch
	"

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	patch -p1 -i "$srcdir"/cracklib-nls.patch
}

build() {

	cd "$srcdir/$pkgname-$pkgver"

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--without-python \
		--disable-nls \
		--with-default-dict
	make -j1 all || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make -j1 DESTDIR="$pkgdir" install

}

md5sums="3bfb22db8fcffd019463ee415a1b25b7  cracklib-2.8.16.tar.gz
239b1b7b59bee4dee7577aa9df18ba46  cracklib-nls.patch"