summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD28
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b0f872dcc8c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = python-chainmap
+ pkgdesc = Backport/clone of ChainMap for py26, py32, and pypy3
+ pkgver = 1.0.2
+ pkgrel = 1
+ url = https://bitbucket.org/jeunice/chainmap
+ arch = any
+ license = PSF
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ source = https://pypi.python.org/packages/source/c/chainmap/chainmap-1.0.2.tar.gz
+ sha256sums = 405da3bce9913bfb33e6e497803b447b60d12ab44031ca357626143e087e0526
+
+pkgname = python-chainmap
+
+pkgname = python2-chainmap
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f7d2003bbb5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Niklas <niklas at anio dot xyz>
+
+pkgbase=python-chainmap
+pkgname=("python-chainmap" "python2-chainmap")
+_realname=chainmap
+pkgver=1.0.2
+pkgrel=1
+pkgdesc="Backport/clone of ChainMap for py26, py32, and pypy3"
+arch=("any")
+url="https://bitbucket.org/jeunice/chainmap"
+license=("PSF")
+makedepends=("python-setuptools" "python2-setuptools")
+source=("https://pypi.python.org/packages/source/${_realname:0:1}/${_realname}/${_realname}-${pkgver}.tar.gz")
+sha256sums=("405da3bce9913bfb33e6e497803b447b60d12ab44031ca357626143e087e0526")
+
+prepare() {
+ cp -a $_realname-$pkgver{,-python2}
+}
+
+package_python-chainmap() {
+ cd "${srcdir}/${_realname}-${pkgver}"
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-chainmap() {
+ cd "${srcdir}/${_realname}-${pkgver}-python2"
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+} \ No newline at end of file