summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Springer2018-09-12 15:54:10 +0200
committerStephan Springer2018-09-12 15:54:10 +0200
commitc599eaf0107964445e4420b634274665951c20e5 (patch)
tree6d466ad7cdfbdeb232b32a0dcb2e8fed10d15d22
parentc227de916f2cbb842feb95799a310063eddaf16c (diff)
downloadaur-c599eaf0107964445e4420b634274665951c20e5.tar.gz
adopt; download from Github; install LICENSE
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD23
2 files changed, 17 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4b0a9233bb6..25d86a91dbd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-prompt_toolkit-gns3
pkgdesc = Library for building powerful interactive command lines in Python (GNS3)
pkgver = 1.0.15
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/jonathanslenders/python-prompt-toolkit
arch = any
groups = gns3
@@ -10,11 +10,11 @@ pkgbase = python-prompt_toolkit-gns3
depends = python-pygments
depends = python-six
depends = python-wcwidth
- provides = python-prompt_toolkit
- conflicts = python-prompt_toolkit
+ provides = python-python-prompt-toolkit
+ conflicts = python-python-prompt-toolkit
options = !emptydirs
- source = https://files.pythonhosted.org/packages/source/p/prompt_toolkit/prompt_toolkit-1.0.15.tar.gz
- sha256sums = 858588f1983ca497f1cf4ffde01d978a3ea02b01c8a26a8bbc5cd2e66d816917
+ source = python-prompt-toolkit-1.0.15.tar.gz::https://github.com/jonathanslenders/python-prompt-toolkit/archive/1.0.15.tar.gz
+ sha256sums = e2f720a1e8149a2b56b776d68c8fb28c8211546d266301178fb982e69d0c9bed
pkgname = python-prompt_toolkit-gns3
diff --git a/PKGBUILD b/PKGBUILD
index 9193aa09749..19e876533f4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,9 @@
# Maintainer: Joseph Brains <jnbrains@gmail.com>
-_pkgname=prompt_toolkit
-pkgname=python-${_pkgname}-gns3
+_pkgname=python-prompt-toolkit
+pkgname=python-prompt_toolkit-gns3
pkgver=1.0.15
-pkgrel=1
+pkgrel=2
pkgdesc="Library for building powerful interactive command lines in Python (GNS3)"
arch=('any')
depends=('python-pygments' 'python-six' 'python-wcwidth')
@@ -12,17 +12,18 @@ url="https://github.com/jonathanslenders/python-prompt-toolkit"
license=('BSD')
groups=('gns3')
options=(!emptydirs)
-provides=("python-${_pkgname}")
-conflicts=("python-${_pkgname}")
-source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-$pkgver.tar.gz")
-sha256sums=('858588f1983ca497f1cf4ffde01d978a3ea02b01c8a26a8bbc5cd2e66d816917')
+provides=("python-$_pkgname")
+conflicts=("python-$_pkgname")
+source=("$_pkgname-$pkgver.tar.gz::https://github.com/jonathanslenders/$_pkgname/archive/$pkgver.tar.gz")
+sha256sums=('e2f720a1e8149a2b56b776d68c8fb28c8211546d266301178fb982e69d0c9bed')
build() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
- python3 setup.py build
+ cd "$_pkgname-$pkgver"
+ python setup.py build
}
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
- python3 setup.py install --root="${pkgdir}/" --optimize=1
+ cd "$_pkgname-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}