aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/libpwquality/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/libpwquality/APKBUILD')
-rw-r--r--unmaintained/libpwquality/APKBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/unmaintained/libpwquality/APKBUILD b/unmaintained/libpwquality/APKBUILD
new file mode 100644
index 0000000000..22912cfe51
--- /dev/null
+++ b/unmaintained/libpwquality/APKBUILD
@@ -0,0 +1,54 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer:
+pkgname=libpwquality
+pkgver=1.2.4
+pkgrel=0
+pkgdesc="A library for password generation and password quality checking"
+url="http://libpwquality.fedorahosted.org/"
+arch="all"
+license="BSD or GPLv2+"
+depends=""
+depends_dev="cracklib-dev"
+makedepends="$depends_dev python-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc py-pwquality:_py"
+source="http://fedorahosted.org/releases/l/i/libpwquality/libpwquality-$pkgver.tar.bz2"
+
+_builddir="$srcdir"/libpwquality-$pkgver
+prepare() {
+ 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 "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+_py() {
+ pkgdesc="Python bindings for the libpwquality library"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
+}
+
+md5sums="5c8b1d984a9c184fc62a4d07bb36b922 libpwquality-1.2.4.tar.bz2"
+sha256sums="9ad67be364a66dc8b334a473c77d9f531137ee0e9d85d81f567f410a375857c7 libpwquality-1.2.4.tar.bz2"
+sha512sums="63ead296320e8eadc1a3341c28b015f9dbbf30e610e9226a11018d81aeb412d0e211753ebdb45f959c35cedfc6ed580bba9e6b0f8822c3b5f38062428f637049 libpwquality-1.2.4.tar.bz2"