PKGBUILD 1018 Bytes
Newer Older
1 2 3 4 5
#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
6
# This package has a corresponding lib32 package (lib32-cracklib).
7

Jan Mette's avatar
Jan Mette committed
8
pkgname=cracklib
Lisa's avatar
Lisa committed
9 10
pkgver=2.9.6
pkgrel=1
Jan Mette's avatar
Jan Mette committed
11
pkgdesc="Password Checking Library"
12
arch=('i686' 'x86_64')
Jan Mette's avatar
Jan Mette committed
13 14 15 16
license=('GPL')
url="http://sourceforge.net/projects/cracklib"
depends=('glibc' 'zlib')
options=('!libtool')
Lisa's avatar
Lisa committed
17 18
source=(https://github.com/cracklib/cracklib/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz)
md5sums=('c52f463585d85924b28cdc1e373ae06d')
Jan Mette's avatar
Jan Mette committed
19 20

build() {
21
  cd ${srcdir}/$pkgname-$pkgver
Jan Mette's avatar
Jan Mette committed
22 23
  ./configure --prefix=/usr --without-python
  make || return 1
24 25 26
}

package() {
27
  cd ${srcdir}/$pkgname-$pkgver
28 29
  make DESTDIR=$pkgdir install
  install -Dm644 dicts/cracklib-small $pkgdir/usr/share/dict/cracklib-small
Jan Mette's avatar
Jan Mette committed
30
  sh ./util/cracklib-format dicts/cracklib-small \
31
    | sh ./util/cracklib-packer $pkgdir/usr/share/cracklib/pw_dict
Jan Mette's avatar
Jan Mette committed
32
}