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

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
}

build() {

	cd "$srcdir/$pkgname-$pkgver"

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

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make -j1 DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1

}

md5sums="e0f94ac2138fd33c7e77b19c1e9a9390  cracklib-2.9.0.tar.gz"
sha256sums="17fecdfa78c0b9b47afa1533ea99b5351c3cef770bbd9c8c34391827efecbdc0  cracklib-2.9.0.tar.gz"
sha512sums="10e58618fbe42a2ee6a5106dac5ae9cb66d6ae01162caee03954f2f39bd009e0a194513152f5cf593631d5d164c6c26ec35c82470bfc23d70ceb1a440f863d30  cracklib-2.9.0.tar.gz"