2012-11-18 06:58:06 +08:00
|
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
2013-12-18 02:36:04 +08:00
|
|
|
|
2013-12-18 02:41:12 +08:00
|
|
|
# Maintainer abveritas@chakra-project.org
|
2012-11-18 06:58:06 +08:00
|
|
|
# contributor Jan de Groot <jgc@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=libpwquality
|
2015-01-15 01:56:42 +08:00
|
|
|
pkgver=1.2.3
|
2012-11-18 06:58:06 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Library for password quality checking and generating random passwords"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://fedorahosted.org/libpwquality/"
|
|
|
|
license=('GPL')
|
|
|
|
depends=('cracklib')
|
|
|
|
optdepends=('python2: Python bindings')
|
|
|
|
makedepends=('python2')
|
|
|
|
source=("https://fedorahosted.org/releases/l/i/libpwquality/$pkgname-$pkgver.tar.bz2")
|
2015-01-15 01:56:42 +08:00
|
|
|
md5sums=('a8d4cf5d40a1c301f965432e6f3b821b')
|
2012-11-18 06:58:06 +08:00
|
|
|
|
2015-01-15 01:56:42 +08:00
|
|
|
prepare() {
|
2012-11-18 06:58:06 +08:00
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
sed -i -e 's/python setup.py/python2 setup.py/' python/Makefile.in
|
2015-01-15 01:56:42 +08:00
|
|
|
}
|
2012-11-18 06:58:06 +08:00
|
|
|
|
2015-01-15 01:56:42 +08:00
|
|
|
build() {
|
|
|
|
cd "$pkgname-$pkgver"
|
2012-11-18 06:58:06 +08:00
|
|
|
PYTHON=python2 ./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
2015-01-15 01:56:42 +08:00
|
|
|
--with-python-rev=2.7
|
2012-11-18 06:58:06 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
make DESTDIR="$pkgdir" install
|
2012-12-23 03:41:40 +08:00
|
|
|
}
|