summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAchmad Fathoni2020-10-26 14:32:33 +0700
committerAchmad Fathoni2020-10-26 14:32:33 +0700
commit4a317a35c6d0dfa1ad921eb235f9ccd76c540fd6 (patch)
tree953cbaf1323ad190274f6171919436bbd1aceceb
parent54ca9f2779c8c6ccbe03d65e7a764fa726ec5998 (diff)
downloadaur-python-colcon-metadata.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 0e5da17cc70..2a778af95e4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,14 @@
pkgbase = python-colcon-metadata
pkgdesc = An extension for colcon-core to fetch and manage package metadata from repositories.
- pkgver = 0.2.2
+ pkgver = 0.2.5
pkgrel = 1
url = https://pypi.org/project/colcon-metadata/
arch = any
license = Apache
makedepends = python-setuptools
depends = python-colcon-core
- source = https://files.pythonhosted.org/packages/b8/ed/e15737df4f0553f9e4e322fb299d5bebfe78ef0ac444818a53867ef35486/colcon-metadata-0.2.2.tar.gz
- sha256sums = 0b0fdfa657444bd3266459208460494f0d8b4d6a607e618db0904f54c4e64250
+ source = https://files.pythonhosted.org/packages/source/c/colcon-metadata/colcon-metadata-0.2.5.tar.gz
+ sha256sums = 137c740ce10e29219c4d89c4f0dac8549e46bfb6e3bc2296fe2d051bdb971ec8
pkgname = python-colcon-metadata
diff --git a/PKGBUILD b/PKGBUILD
index b4252f9df5c..173678cc8dc 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-metadata
-pkgver=0.2.2
+_name=${pkgname:7}
+pkgver=0.2.5
pkgrel=1
pkgdesc="An extension for colcon-core to fetch and manage package metadata from repositories."
arch=(any)
@@ -8,12 +10,12 @@ url="https://pypi.org/project/colcon-metadata/"
license=('Apache')
depends=('python-colcon-core')
makedepends=('python-setuptools')
-source=(https://files.pythonhosted.org/packages/b8/ed/e15737df4f0553f9e4e322fb299d5bebfe78ef0ac444818a53867ef35486/colcon-metadata-0.2.2.tar.gz)
-sha256sums=('0b0fdfa657444bd3266459208460494f0d8b4d6a607e618db0904f54c4e64250')
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha256sums=('137c740ce10e29219c4d89c4f0dac8549e46bfb6e3bc2296fe2d051bdb971ec8')
package() {
- cd ${srcdir}/colcon-metadata-${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}"