git » cracklib.git » commit bc4d40f

rebuild to remove from base group

author Allan McRae
2010-04-18 10:20:55 UTC
committer Allan McRae
2010-04-18 10:20:55 UTC
parent f15bde8f953e19c6f15e941f0f8ca0021d59900c

rebuild to remove from base group

PKGBUILD +9 -6

diff --git a/PKGBUILD b/PKGBUILD
index b4ca5d2..7d61654 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,9 +3,9 @@
 
 pkgname=cracklib
 pkgver=2.8.13
-pkgrel=2
+pkgrel=3
 pkgdesc="Password Checking Library"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
 license=('GPL')
 url="http://sourceforge.net/projects/cracklib"
 depends=('glibc' 'zlib')
@@ -17,9 +17,12 @@ build() {
   cd $startdir/src/$pkgname-$pkgver
   ./configure --prefix=/usr --without-python
   make || return 1
-  mkdir -p $startdir/pkg/usr/share/dict
-  make DESTDIR=$startdir/pkg install
-  cp dicts/cracklib-small $startdir/pkg/usr/share/dict
+}
+
+package() {
+  cd $startdir/src/$pkgname-$pkgver
+  make DESTDIR=$pkgdir install
+  install -Dm644 dicts/cracklib-small $pkgdir/usr/share/dict/cracklib-small
   sh ./util/cracklib-format dicts/cracklib-small \
-    | sh ./util/cracklib-packer $startdir/pkg/usr/share/cracklib/pw_dict
+    | sh ./util/cracklib-packer $pkgdir/usr/share/cracklib/pw_dict
 }