summaryrefslogtreecommitdiff
path: root/libre/cracklib-static/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/cracklib-static/PKGBUILD')
-rw-r--r--libre/cracklib-static/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/libre/cracklib-static/PKGBUILD b/libre/cracklib-static/PKGBUILD
new file mode 100644
index 000000000..5ed00b892
--- /dev/null
+++ b/libre/cracklib-static/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Márcio Silva <coadde@parabola.nu>
+# based of cracklib
+
+_pkgname=cracklib
+pkgname=cracklib-static
+pkgver=2.9.6
+pkgrel=1
+pkgdesc="Password Checking Library (static libraries only)"
+arch=('i686' 'x86_64' 'armv7h')
+license=('GPL')
+url="https://github.com/cracklib/cracklib"
+depends=('cracklib')
+options=('staticlibs')
+source=(https://github.com/cracklib/cracklib/releases/download/$_pkgname-$pkgver/$_pkgname-$pkgver.tar.gz)
+md5sums=('c52f463585d85924b28cdc1e373ae06d')
+
+build() {
+ cd $srcdir/$_pkgname-$pkgver
+ ./configure --prefix=/usr --without-python
+ make
+}
+
+check() {
+ cd $srcdir/$_pkgname-$pkgver
+ make check
+}
+
+package() {
+ cd $srcdir/$_pkgname-$pkgver
+ make DESTDIR=$pkgdir install
+
+ # remove conflicting files
+ rm -vr ${pkgdir}/usr/{include,sbin,share}
+ rm -v ${pkgdir}/usr/lib/lib*.so*
+}