summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD14
2 files changed, 10 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ed6bac6c7ae..2975c97c354 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -11,10 +11,10 @@ pkgbase = python2-cashew
depends = python2-inflection>=0.2.0
provides = cashew
options = !emptydirs
- source = https://pypi.python.org/packages/source/c/cashew/cashew-0.2.7.tar.gz
+ source = https://files.pythonhosted.org/packages/source/c/cashew/cashew-0.2.7.tar.gz
source = LICENSE::https://raw.githubusercontent.com/dexy/cashew/master/LICENSE
- md5sums = e7a3801bf2ac92817d33292ea25efe5e
- md5sums = 7ae0144577340e245b148893690d7f37
+ sha256sums = b75095f0b13547cb39db8897f535c26a2859bd8152bd704d545ba72546ea9fda
+ sha256sums = 87159e27fa3f901ea96b5ca028c1695c531bdbadfd4cd8aee37661ca9d28bfb8
pkgname = python2-cashew
diff --git a/PKGBUILD b/PKGBUILD
index 64d7e3adf9f..c4aa78d0ec0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Mohamar Rios <mohamar.rios@gmail.com>
-_pkgname=cashew
-pkgname=python2-${_pkgname}
+pkgname=python2-cashew
+_name=${pkgname#python2-}
pkgver=0.2.7
pkgrel=1
pkgdesc="The plugin system used by dexy."
@@ -13,14 +13,14 @@ depends=('python2'
'python2-inflection>=0.2.0')
makedepends=('python2-setuptools')
options=(!emptydirs)
-provides=("${_pkgname}")
-source=("https://pypi.python.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
+provides=("${_name}")
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
"LICENSE::https://raw.githubusercontent.com/dexy/cashew/master/LICENSE")
-md5sums=('e7a3801bf2ac92817d33292ea25efe5e'
- '7ae0144577340e245b148893690d7f37')
+sha256sums=('b75095f0b13547cb39db8897f535c26a2859bd8152bd704d545ba72546ea9fda'
+ '87159e27fa3f901ea96b5ca028c1695c531bdbadfd4cd8aee37661ca9d28bfb8')
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_name}-${pkgver}"
python2 setup.py install --root="${pkgdir}/" --optimize=1
install -Dm644 ${srcdir}/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE