summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel B. Casella2015-08-19 02:44:13 -0300
committerGabriel B. Casella2015-08-19 02:44:13 -0300
commit525db47685bf21c4507287609c8e3a9c311bc0d6 (patch)
tree2012014703bbd2534a216b58d873ea2ad5b72686
downloadaur-525db47685bf21c4507287609c8e3a9c311bc0d6.tar.gz
First commit migrating package from AURv3 to AURv4
The only modification from the previous version is the inclusion of .SRCINFO
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD41
-rw-r--r--python2_only.patch11
3 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..9f9feb1a7e78
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = python2-crack
+ pkgdesc = Python bindings for cracklib.
+ pkgver = 0.5.1
+ pkgrel = 2
+ url = http://www.nongnu.org/python-crack/
+ arch = i686
+ arch = x86_64
+ license = MIT/X
+ depends = python2
+ depends = glibc
+ depends = cracklib
+ source = http://download.savannah.gnu.org/releases/python-crack/python-crack-0.5.1.tar.gz
+ source = python2_only.patch
+ sha256sums = 3164ef072a405b5bb8d023760bf79d465b42574481888b466a66a5aeb7bc03e8
+ sha256sums = a5048ae26d8f6cae5e1ac7e67d530d57cfac83bd44627270a20080344192b52f
+
+pkgname = python2-crack
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..747d04666094
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Gabriel B. Casella <gbc921@gmail.com>
+# Contributor: Jonathan Wilson <bugs@pandorica.net>
+
+pkgname=python2-crack
+pkgver=0.5.1
+pkgrel=2
+pkgdesc="Python bindings for cracklib."
+arch=('i686' 'x86_64')
+license=('MIT/X')
+depends=('python2' 'glibc' 'cracklib')
+url="http://www.nongnu.org/python-crack/"
+source=(http://download.savannah.gnu.org/releases/python-crack/python-crack-$pkgver.tar.gz
+ python2_only.patch)
+
+sha256sums=('3164ef072a405b5bb8d023760bf79d465b42574481888b466a66a5aeb7bc03e8'
+ 'a5048ae26d8f6cae5e1ac7e67d530d57cfac83bd44627270a20080344192b52f')
+
+prepare()
+{
+ cd "$srcdir"/python-crack-"$pkgver"
+ patch -Np0 -i "$srcdir/python2_only.patch"
+ DEFAULT_DICTPATH=/usr/share/cracklib/pw_dict ./configure --prefix=/usr
+ find -type f -name '*.py*' -exec sed -i 's|/usr/bin/python$|&2|g' {} \;
+}
+
+build()
+{
+ cd "$srcdir"/python-crack-"$pkgver"
+ make
+}
+
+package() {
+ cd "$srcdir"/python-crack-"$pkgver"
+
+ install -Dm644 README "$pkgdir"/usr/share/licenses/"$pkgname"/README
+ install -Dm644 INSTALL "$pkgdir"/usr/share/licenses/"$pkgname"/INSTALL
+
+ make DESTDIR="$pkgdir"/ install
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/python2_only.patch b/python2_only.patch
new file mode 100644
index 000000000000..ac9ddd1ccd75
--- /dev/null
+++ b/python2_only.patch
@@ -0,0 +1,11 @@
+--- configure 2006-04-10 03:10:07.000000000 -0600
++++ configure 2012-04-06 16:50:00.864304570 -0600
+@@ -2911,7 +2911,7 @@
+
+
+ # Find any Python interpreter.
+- for ac_prog in python python2 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
++ for ac_prog in python2 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
+ do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+ set dummy $ac_prog; ac_word=$2