desktop/libpwquality/PKGBUILD

37 lines
937 B
Bash
Raw Normal View History

# 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
# contributor Jan de Groot <jgc@archlinux.org>
pkgname=libpwquality
2015-01-15 01:56:42 +08:00
pkgver=1.2.3
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')
2015-01-15 01:56:42 +08:00
prepare() {
cd "$pkgname-$pkgver"
sed -i -e 's/python setup.py/python2 setup.py/' python/Makefile.in
2015-01-15 01:56:42 +08:00
}
2015-01-15 01:56:42 +08:00
build() {
cd "$pkgname-$pkgver"
PYTHON=python2 ./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
2015-01-15 01:56:42 +08:00
--with-python-rev=2.7
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
2012-12-23 03:41:40 +08:00
}