diff options
-rw-r--r-- | main/cracklib/APKBUILD | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/main/cracklib/APKBUILD b/main/cracklib/APKBUILD index 3c385b8d7a..158439d806 100644 --- a/main/cracklib/APKBUILD +++ b/main/cracklib/APKBUILD @@ -6,22 +6,25 @@ pkgrel=0 pkgdesc="A library used to enforce strong passwords" url="http://sourceforge.net/projects/cracklib" arch="all" -license="GPL" +license="LGPL2+" depends="" makedepends="" install= subpackages="$pkgname-dev" -source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz - " +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" +_builddir="$srcdir"/$pkgname-$pkgver prepare() { - cd "$srcdir"/$pkgname-$pkgver + 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 "$srcdir/$pkgname-$pkgver" - + cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -37,7 +40,7 @@ build() { } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "$_builddir" make -j1 DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la || return 1 |