summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAchmad Fathoni2020-10-26 14:30:13 +0700
committerAchmad Fathoni2020-10-26 14:30:13 +0700
commitc1d974a934a8d929b29d106d0620b838f31a450f (patch)
treede96bd2dca71716bd22b54b70a5a1dbc4c2898ca
parent66dd84e228b2861f6223a55c70a17ac65e930cc7 (diff)
downloadaur-c1d974a934a8d929b29d106d0620b838f31a450f.tar.gz
derivate _name from pkgname
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD12
2 files changed, 10 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6c4fd9ff1c2..109b45ee8b7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,14 @@
pkgbase = python-colcon-devtools
pkgdesc = An extension for colcon-core to provide information about the plugin system.
- pkgver = 0.2.1
+ pkgver = 0.2.2
pkgrel = 1
url = https://pypi.org/project/colcon-devtools/
arch = any
license = Apache
makedepends = python-setuptools
depends = python-colcon-core
- source = https://files.pythonhosted.org/packages/1d/ac/8f67927a04e8c05fb9d7abca0f5954382e92d136e00c9d961a8875b84bd7/colcon-devtools-0.2.1.tar.gz
- sha256sums = 5761e2025e4860ca618491aebd2bd12ab68ebd96c11c92ad1b7e1b1caf7a1ecf
+ source = https://files.pythonhosted.org/packages/source/c/colcon-devtools/colcon-devtools-0.2.2.tar.gz
+ sha256sums = 6ed3f29052c44e021b64106d5ae338e2b8936ba58c9f1c0496478327973d3f7b
pkgname = python-colcon-devtools
diff --git a/PKGBUILD b/PKGBUILD
index 6e7097ba421..1a473600c08 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,8 @@
-#Maintainer: Tong Chunli<t.cunly at 163 dot com>
+# Maintainer: Achmad Fathoni<fathoni.id(at)gmail.com>
+# Contributor: Tong Chunli<t.cunly at 163 dot com>
pkgname=python-colcon-devtools
-pkgver=0.2.1
+_name=${pkgname:7}
+pkgver=0.2.2
pkgrel=1
pkgdesc="An extension for colcon-core to provide information about the plugin system."
arch=(any)
@@ -8,12 +10,12 @@ url="https://pypi.org/project/colcon-devtools/"
license=('Apache')
depends=('python-colcon-core')
makedepends=('python-setuptools')
-source=("https://files.pythonhosted.org/packages/1d/ac/8f67927a04e8c05fb9d7abca0f5954382e92d136e00c9d961a8875b84bd7/colcon-devtools-$pkgver.tar.gz")
-sha256sums=('5761e2025e4860ca618491aebd2bd12ab68ebd96c11c92ad1b7e1b1caf7a1ecf')
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha256sums=('6ed3f29052c44e021b64106d5ae338e2b8936ba58c9f1c0496478327973d3f7b')
package() {
- cd ${srcdir}/colcon-devtools-${pkgver}
+ cd ${srcdir}/${_name}-${pkgver}
python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"