summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Schlisio2016-07-04 14:22:45 +0200
committerGeorg Schlisio2016-07-04 14:22:45 +0200
commit850b395ffbda72401e54cd5ae36f94d6fc1d5a21 (patch)
tree92cafc046ea3dc1d3d7f8582a4ed22ecc6f09f91
parent840dc88392533998eb2b651acd09a52840d0dda9 (diff)
downloadaur-850b395ffbda72401e54cd5ae36f94d6fc1d5a21.tar.gz
0.2.5, split package now
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD31
2 files changed, 27 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 018a3f46e2c..39584472557 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,16 @@
pkgbase = python-dill
pkgdesc = Serialize all of python (almost)
- pkgver = 0.2.4
+ pkgver = 0.2.5
pkgrel = 1
url = http://pypi.python.org/pypi/dill/
arch = any
license = BSD
- depends = python
- source = http://pypi.python.org/packages/source/d/dill/dill-0.2.4.tgz
- md5sums = 8e7d1ec5a0f150b536da4d0623c3931b
+ source = http://pypi.python.org/packages/source/d/dill/dill-0.2.5.tgz
+ md5sums = 5b0c312f034914be2e230457747d9b6c
pkgname = python-dill
+ depends = python
+
+pkgname = python2-dill
+ depends = python2
diff --git a/PKGBUILD b/PKGBUILD
index c4086f2602a..d6b1491d470 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,24 +1,33 @@
-# Maintainer: Antony Lee <anntzer dot lee at gmail dot com>
+# former Maintainer python-dill: Antony Lee
+# former Maintainer python2-dill: bchretien
-pkgname=python-dill
-pkgver=0.2.4
+pkgname=("python-dill" "python2-dill")
+pkgbase=python-dill
+pkgver=0.2.5
pkgrel=1
pkgdesc='Serialize all of python (almost)'
arch=('any')
url='http://pypi.python.org/pypi/dill/'
license=('BSD')
-depends=('python')
source=("http://pypi.python.org/packages/source/d/dill/dill-$pkgver.tgz")
-md5sums=('8e7d1ec5a0f150b536da4d0623c3931b')
+md5sums=('5b0c312f034914be2e230457747d9b6c')
build() {
- cd "$srcdir/dill-$pkgver"
- python setup.py build
+ cd "$srcdir/dill-$pkgver"
+ python setup.py build
}
-package() {
- cd "$srcdir/dill-$pkgver"
- python setup.py install --root="$pkgdir/" --optimize=1
- install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+package_python-dill() {
+ depends=('python')
+ cd "$srcdir/dill-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
+package_python2-dill() {
+ depends=('python2')
+ cd "$srcdir/dill-$pkgver"
+ find . -name "*.py" -exec sed -i 's#/usr/bin/env python#/usr/bin/env python2#' {} \;
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}