summaryrefslogtreecommitdiff
path: root/python-silx
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-07-09 11:44:49 +0200
committerErich Eckner <git@eckner.net>2018-07-09 11:44:49 +0200
commit3f04bf4733f51c0046fb48fc0cf06c4a14e87d4d (patch)
tree3ea74f0d9c130656e82014f4efeea83f86da3b57 /python-silx
parentb4d7daef0702be812f892d132aa113123eef483e (diff)
downloadarchlinuxewe-3f04bf4733f51c0046fb48fc0cf06c4a14e87d4d.tar.xz
python-fabio, python-pyfai, python-silx: clean up source names
Diffstat (limited to 'python-silx')
-rw-r--r--python-silx/PKGBUILD15
1 files changed, 8 insertions, 7 deletions
diff --git a/python-silx/PKGBUILD b/python-silx/PKGBUILD
index 586edb22b..71605cf7e 100644
--- a/python-silx/PKGBUILD
+++ b/python-silx/PKGBUILD
@@ -3,6 +3,7 @@
# Upstream contact: silx at esrf dot fr
pkgbase=python-silx
pkgname=(python2-silx python-silx)
+_pkgname=silx
pkgver=0.8.0
pkgrel=1
pkgdesc="A collection of Python packages for data analysis at synchrotron radiation facilities."
@@ -16,7 +17,7 @@ _optdepends=('python-h5py: for HDF5 input/output'
'python-pyopencl: for sift - OpenCL implementation'
'opencl-driver: for sift - OpenCL implementation')
_makedepends=('cython')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/silx-kit/${pkgname#*-}/archive/v${pkgver}.tar.gz")
+source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/silx-kit/${_pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('991250e242d4be6b5e6eae4d9267b5ba1e70d3abdd2aa4244bd55ce0fe4d0a49')
makedepends=(
@@ -27,15 +28,15 @@ makedepends=(
)
prepare() {
- cp -r "${pkgname#*-}-${pkgver}" "py2-${pkgname#*-}-${pkgver}"
- mv "${pkgname#*-}-${pkgver}" "py-${pkgname#*-}-${pkgver}"
+ cp -r "${_pkgname}" "py2-${_pkgname}-${pkgver}"
+ mv "${_pkgname}-${pkgver}" "py-${_pkgname}-${pkgver}"
}
build() {
- cd "${srcdir}/py-${pkgname#*-}-${pkgver}"
+ cd "${srcdir}/py-${_pkgname}-${pkgver}"
python setup.py build
- cd "${srcdir}/py2-${pkgname#*-}-${pkgver}"
+ cd "${srcdir}/py2-${_pkgname}-${pkgver}"
python2 setup.py build
}
@@ -46,7 +47,7 @@ package_python2-silx() {
optdepends=(
"${_optdepends[@]//python/python2}"
)
- cd "${srcdir}/py2-${pkgname#*-}-${pkgver}"
+ cd "${srcdir}/py2-${_pkgname}-${pkgver}"
python2 setup.py install --root="${pkgdir}/" --optimize=1
install -D copyright "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
mv "${pkgdir}/usr/bin/silx" "${pkgdir}/usr/bin/silx2"
@@ -63,7 +64,7 @@ package_python-silx() {
optdepenends=(
"${_optdepends[@]}"
)
- cd "${srcdir}/py-${pkgname#*-}-${pkgver}"
+ cd "${srcdir}/py-${_pkgname}-${pkgver}"
python setup.py install --root="${pkgdir}/" --optimize=1
install -D copyright "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}