summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAchmad Fathoni2020-10-26 13:04:45 +0700
committerAchmad Fathoni2020-10-26 13:04:45 +0700
commit07e6a2180c897f64020dabad138d8aaaf207b9f1 (patch)
treef9c1939841eb7396d50cc0b7c67bf3c8c88041eb
parentec5010495aac66351a027d394656ddfd2ac93b1f (diff)
downloadaur-07e6a2180c897f64020dabad138d8aaaf207b9f1.tar.gz
derivate _name from pkgname
-rw-r--r--PKGBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 76e799c0a43..cf9c1a8bd90 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-cmake
-_name=colcon-cmake
+_name=${pkgname:7}
pkgver=0.2.26
pkgrel=1
pkgdesc="An extension for colcon-core to support CMake projects."
arch=(any)
-url="https://pypi.org/project/colcon-cmake/"
+url="https://pypi.org/project/$_name"
license=('Apache')
depends=('python-colcon-core')
makedepends=('python-setuptools')
@@ -15,7 +15,7 @@ sha256sums=('5a227fe812766be5fc3895c821bf9190f571e8c25eb73962967310d6b524349f')
package() {
- cd ${srcdir}/colcon-cmake-${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}"