summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas2017-08-05 04:09:35 +0200
committerNiklas2017-08-05 04:09:35 +0200
commit55ad93c7fad2914953b526080d10e6b120fc60e1 (patch)
treebf6b1327334662831120c14371f8b039afeb6227
parentc776908d900bb828111355a8972247e898662704 (diff)
downloadaur-55ad93c7fad2914953b526080d10e6b120fc60e1.tar.gz
Formatting
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD18
2 files changed, 10 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0a32bc1ebc9..e7d98fb325d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -7,7 +7,7 @@ pkgbase = python-chainmap
license = PSF
makedepends = python-setuptools
makedepends = python2-setuptools
- source = https://pypi.python.org/packages/source/c/chainmap/chainmap-1.0.2.tar.gz
+ source = https://files.pythonhosted.org/packages/source/c/chainmap/chainmap-1.0.2.tar.gz
sha256sums = 405da3bce9913bfb33e6e497803b447b60d12ab44031ca357626143e087e0526
pkgname = python-chainmap
diff --git a/PKGBUILD b/PKGBUILD
index 45b931cde3e..ed8689d0460 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
-# Maintainer: Niklas <niklas at anio dot xyz>
+# Maintainer: Niklas <dev@n1klas.net>
pkgbase=python-chainmap
pkgname=("python-chainmap" "python2-chainmap")
-_realname=chainmap
+_name=chainmap
pkgver=1.0.2
pkgrel=2
pkgdesc="Backport/clone of ChainMap for py26, py32, and pypy3"
@@ -10,19 +10,19 @@ 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")
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=("405da3bce9913bfb33e6e497803b447b60d12ab44031ca357626143e087e0526")
prepare() {
- cp -a $_realname-$pkgver{,-python2}
+ cp -a $_name-$pkgver{,-python2}
}
package_python-chainmap() {
- cd "${srcdir}/${_realname}-${pkgver}"
- python setup.py install --root="${pkgdir}" --optimize=1
+ cd "${srcdir}/${_name}-${pkgver}"
+ python 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
+ cd "${srcdir}/${_name}-${pkgver}-python2"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+}