summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAchmad Fathoni2020-10-26 13:03:20 +0700
committerAchmad Fathoni2020-10-26 13:03:20 +0700
commit3482106b1294ff2686b6a6d471d5e857b471b772 (patch)
tree024e43a526d266897ffea03fb5a12ae5839d491d
parent4271094ab01e7f997ef081cf91b3d8dc4a132069 (diff)
downloadaur-3482106b1294ff2686b6a6d471d5e857b471b772.tar.gz
derivate _name from pkgname
-rw-r--r--PKGBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index eb6567b85d5..33d666db92e 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-bash
-_name=colcon-bash
+_name=${pkgname:7}
pkgver=0.4.2
pkgrel=1
pkgdesc="An extension for colcon-core to provide Bash scripts."
arch=(any)
-url="https://pypi.org/project/colcon-bash"
+url="https://pypi.org/project/$_name"
license=('Apache')
depends=('python-colcon-core')
makedepends=('python-setuptools')
@@ -14,7 +14,7 @@ source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name
sha256sums=('86950ca62293b655ef8d655d2994d110321fff2fc6739c46a64f005a0cee1bdd')
package() {
- cd ${srcdir}/colcon-bash-${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}"