summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortocic <tocic@protonmail.ch>2019-04-14 10:39:10 +0300
committertocic <tocic@protonmail.ch>2019-04-14 10:39:10 +0300
commitdeb389a70710f120d3878e347bcbf8ee97dca81b (patch)
tree1d9465606071c9d899fef926318adb2447bc7fd3
parent19649754a50b7b2795822d1e569dd000bd5af21e (diff)
change source to https://pypi.org/project/colorlog/
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD9
2 files changed, 7 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6ae3920..dce9a93 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,12 +2,12 @@ pkgbase = python-colorlog
pkgdesc = Log formatting with colors
pkgver = 4.0.1
pkgrel = 1
- url = https://github.com/borntyping/python-colorlog
+ url = https://pypi.org/project/colorlog/
arch = any
license = MIT
makedepends = python-setuptools
makedepends = python2-setuptools
- source = python-colorlog-4.0.1.tar.gz::https://github.com/borntyping/python-colorlog/archive/v4.0.1.tar.gz
+ source = python-colorlog-4.0.1.tar.gz::https://files.pythonhosted.org/packages/source/c/colorlog/colorlog-4.0.1.tar.gz
sha256sums = c015387d4d9cfc853555e066949806102431e6aec946b0fe8bb5cbef3ae42e5f
pkgname = python-colorlog
diff --git a/PKGBUILD b/PKGBUILD
index cbe85fd..9e0b254 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,21 +4,22 @@
pkgbase='python-colorlog'
pkgname=('python-colorlog' 'python2-colorlog')
+_name=${pkgname#python-}
pkgver=4.0.1
pkgrel=1
pkgdesc="Log formatting with colors"
arch=('any')
-url='https://github.com/borntyping/python-colorlog'
+url='https://pypi.org/project/colorlog/'
license=('MIT')
makedepends=('python-setuptools' 'python2-setuptools')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/borntyping/python-colorlog/archive/v$pkgver.tar.gz")
+source=("$pkgbase-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('c015387d4d9cfc853555e066949806102431e6aec946b0fe8bb5cbef3ae42e5f')
package_python-colorlog() {
depends=('python')
conflicts=('python-colorlog-git')
- cd "$srcdir/$pkgbase-$pkgver"
+ cd "$srcdir/$_name-$pkgver"
python setup.py install --root="$pkgdir" --prefix=/usr --optimize=1
install -Dm644 ./LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
@@ -27,7 +28,7 @@ package_python2-colorlog() {
depends=('python2')
conflicts=('python2-colorlog-git')
- cd "$srcdir/$pkgbase-$pkgver"
+ cd "$srcdir/$_name-$pkgver"
python2 setup.py install --root="$pkgdir" --prefix=/usr --optimize=1
install -Dm644 ./LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}