diff options
author | Erich Eckner <git@eckner.net> | 2019-05-24 14:45:30 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-05-24 14:45:30 +0200 |
commit | 6b1d9a0ae8fd903b1d864a9795e18dbf2c9aa444 (patch) | |
tree | 0c86e4c84e211192cdfd3f0cfba7ac2c78bac960 /python-wxmplot | |
parent | 01d517a5a010c172ae63691ccf443dac28d68840 (diff) | |
download | archlinuxewe-6b1d9a0ae8fd903b1d864a9795e18dbf2c9aa444.tar.xz |
set _pkgname in all python-* packages
Diffstat (limited to 'python-wxmplot')
-rwxr-xr-x | python-wxmplot/PKGBUILD | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/python-wxmplot/PKGBUILD b/python-wxmplot/PKGBUILD index 2cb56a5e5..06c8139b6 100755 --- a/python-wxmplot/PKGBUILD +++ b/python-wxmplot/PKGBUILD @@ -1,6 +1,7 @@ # Maintainer: Erich Eckner <arch at eckner dot net> pkgbase=python-wxmplot pkgname=(python2-wxmplot python-wxmplot) +_pkgname="${pkgbase#*-}" pkgver=0.9.34 pkgrel=1 pkgdesc='A library for plotting in wxPython using matplotlib' @@ -32,23 +33,23 @@ makedepends=( "${_makedepends[@]/ython/ython2}" ) source=( - "${pkgname}-${pkgver}.tar.gz::https://pypi.python.org/packages/99/6a/52f701942cc87fdf205f9720d9190cf119c5cf50dbf7e3031b74f1ce144a/${pkgname#*-}-${pkgver}.tar.gz" + "${pkgname}-${pkgver}.tar.gz::https://pypi.python.org/packages/99/6a/52f701942cc87fdf205f9720d9190cf119c5cf50dbf7e3031b74f1ce144a/${_pkgname}-${pkgver}.tar.gz" ) sha512sums=('3b53cf427f6016e468206fb503707f6615114f81a8c741c2e425f91fcc6efa5497c608c16afef9a8602ff21fd0af25fdc7322702f931ef1286f9f3a7452ce0f0') prepare() { - cp -a ${pkgname#*-}-${pkgver}{,-py2} + cp -a ${_pkgname}-${pkgver}{,-py2} } build() { echo "Building python..." ( - cd ${pkgname#*-}-${pkgver} + cd ${_pkgname}-${pkgver} python setup.py build ) echo "Building python2..." ( - cd ${pkgname#*-}-${pkgver}-py2 + cd ${_pkgname}-${pkgver}-py2 python2 setup.py build ) } @@ -58,7 +59,7 @@ package_python2-wxmplot() { "${_deppy2[@]}" "${_depends[@]/python/python2}" ) - cd ${pkgname#*-}-${pkgver}-py2 + cd ${_pkgname}-${pkgver}-py2 python2 setup.py install --skip-build --root="${pkgdir}" --prefix=/usr find "${pkgdir}" -type f -exec sed -si '1 s#[/ ]python\s*$# python2#' {} + } @@ -68,6 +69,6 @@ package_python-wxmplot() { "${_deppy[@]}" "${_depends[@]}" ) - cd ${pkgname#*-}-${pkgver} + cd ${_pkgname}-${pkgver} python setup.py install --skip-build --root="${pkgdir}" --prefix=/usr } |