summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Dewender2013-01-27 12:14:05 +0000
committerJohannes Dewender2013-01-27 12:14:05 +0000
commit74a8c15e98049cb845184cc7c27e542e47cb0170 (patch)
tree4788a21dd906b374584e4b788789c333a474911f
downloadaur-74a8c15e98049cb845184cc7c27e542e47cb0170.tar.gz
debhelper-python2: created as 2.7.3
git-svn-id: http://svn.kraehen.org/aur@216 04e22907-73ef-438a-a52f-a971dc6d3b47
-rw-r--r--.SRCINFO14
-rw-r--r--.gitignore8
-rw-r--r--PKGBUILD60
3 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6b5322ddf82
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = debhelper-python2
+ pkgdesc = debhelper scripts for Python 2: pyversions, python2.pm
+ pkgver = 2.7.3
+ pkgrel = 1
+ url = http://packages.debian.org/sid/python
+ arch = any
+ license = custom:MIT
+ depends = debhelper
+ depends = python2
+ source = http://ftp.debian.org/debian/pool/main/p/python-defaults/python-defaults_2.7.3-3.tar.gz
+ md5sums = 7fb22d7d50a776f20b77cc96dcc1afab
+
+pkgname = debhelper-python2
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..bd9b4a41adc
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+*.tar.gz
+*.tar.xz
+*.tgz
+*.rpm
+*.zip
+*.bz2
+src/
+pkg/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..44f00fafd06
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,60 @@
+# Contributor: Johannes Dewender arch at JonyJD dot net
+pkgname=debhelper-python2
+_pkgname=python-defaults
+pkgver=2.7.3
+pkgrel=1
+_pkgrel=3
+pkgdesc="debhelper scripts for Python 2: pyversions, python2.pm"
+arch=('any')
+url="http://packages.debian.org/sid/python"
+license=('custom:MIT')
+groups=()
+depends=('debhelper' 'python2')
+makedepends=()
+checkdepends=()
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+source=(http://ftp.debian.org/debian/pool/main/p/$_pkgname/${_pkgname}_$pkgver-$_pkgrel.tar.gz)
+md5sums=('7fb22d7d50a776f20b77cc96dcc1afab')
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ make
+ for file in {dh_python2,pyclean,pycompile,debian/pyversions.py}; do
+ sed -i -e '1s|/usr/bin/python$|/usr/bin/python2|' $file
+ done
+}
+
+check() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ make -k check_versions
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+ mv $pkgdir/usr/local/bin $pkgdir/usr/bin
+ mv $pkgdir/usr/local/share $pkgdir/usr/share
+ mkdir -p $pkgdir/usr/share/perl5/vendor_perl
+ mv $pkgdir/usr/share/perl5/Debian $pkgdir/usr/share/perl5/vendor_perl/Debian
+ rm -r $pkgdir/usr/local
+
+ mkdir -p $pkgdir/usr/share/python
+ install -m 755 debian/pyversions.py $pkgdir/usr/share/python/
+ ln -s -r $pkgdir/usr/share/python/pyversions.py $pkgdir/usr/bin/pyversions
+ install -m 755 debian/debian_defaults $pkgdir/usr/share/python/
+ gzip -f debian/pyversions.1
+ mkdir -p $pkgdir/usr/share/man/man1
+ install -m 644 debian/pyversions.1.gz $pkgdir/usr/share/man/man1/
+
+ mkdir -p $pkgdir/usr/share/licenses/$pkgname/
+ install -D -m 644 debian/copyright $pkgdir/usr/share/licenses/$pkgname/
+}
+
+# vim:set ts=2 sw=2 et:
+