summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAchmad Fathoni2020-10-26 13:00:16 +0700
committerAchmad Fathoni2020-10-26 13:00:16 +0700
commit19e213ad79ff3fe5eac4b1176bf6862e5ff72b35 (patch)
tree63d1418041a5fd229dc1363368455d32b5aec768
parent38fbf6edbeb44c768b56250a28d1155b5d87015b (diff)
downloadaur-19e213ad79ff3fe5eac4b1176bf6862e5ff72b35.tar.gz
derivate _name from pkgname
-rw-r--r--PKGBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2d779846a73..c203a7e6340 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,12 +1,12 @@
# Maintainer: Achmad Fathoni<fathoni.id(at)gmail.com>
# Contributor: Tong Chunli<t.cunly at 163 dot com>
pkgname=python-colcon-argcomplete
-_name=colcon-argcomplete
+_name=${pkgname:7}
pkgver=0.3.3
pkgrel=1
pkgdesc="An extension for colcon-core to provide command line completion using argcomplete."
arch=(any)
-url="https://pypi.org/project/colcon-argcomplete"
+url="https://pypi.org/project/$_name"
license=('Apache')
depends=('python-colcon-core' 'python-argcomplete')
makedepends=('python-setuptools')
@@ -14,7 +14,7 @@ source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name
sha256sums=('3e70a32b7d16b816a7c72182bdb20df985ffc01678ec9c67d44659814a61987d')
package() {
- cd ${srcdir}/colcon-argcomplete-${pkgver}
+ cd ${srcdir}/${_name}-${pkgver}
python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 || echo "NOT A PROBLEM"
install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"