summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-21 18:17:05 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-22 02:22:33 -0300
commit4c270add817d0d8e3f7404545c61ada748699cc9 (patch)
tree42a85866412e175d3fc7e35903f8f8f2a4b71b18
parent257161eef41c4d61aed8099fed05dc8f7e7eff55 (diff)
downloadabslibre-4c270add817d0d8e3f7404545c61ada748699cc9.tar.gz
abslibre-4c270add817d0d8e3f7404545c61ada748699cc9.tar.bz2
abslibre-4c270add817d0d8e3f7404545c61ada748699cc9.zip
cracklib-static: add new package to [libre]
-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*
+}