summaryrefslogtreecommitdiff
path: root/python-wxutils/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-05-24 14:45:30 +0200
committerErich Eckner <git@eckner.net>2019-05-24 14:45:30 +0200
commit6b1d9a0ae8fd903b1d864a9795e18dbf2c9aa444 (patch)
tree0c86e4c84e211192cdfd3f0cfba7ac2c78bac960 /python-wxutils/PKGBUILD
parent01d517a5a010c172ae63691ccf443dac28d68840 (diff)
downloadarchlinuxewe.git.save-6b1d9a0ae8fd903b1d864a9795e18dbf2c9aa444.tar.xz
set _pkgname in all python-* packages
Diffstat (limited to 'python-wxutils/PKGBUILD')
-rwxr-xr-xpython-wxutils/PKGBUILD9
1 files changed, 5 insertions, 4 deletions
diff --git a/python-wxutils/PKGBUILD b/python-wxutils/PKGBUILD
index 9069fcf8..f5043c45 100755
--- a/python-wxutils/PKGBUILD
+++ b/python-wxutils/PKGBUILD
@@ -1,6 +1,7 @@
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgbase=python-wxutils
pkgname=(python2-wxutils python-wxutils)
+_pkgname="${pkgbase#*-}"
pkgver=0.2.3
pkgrel=1
pkgdesc='A library of convenience functions for wxPython'
@@ -39,11 +40,11 @@ prepare() {
build() {
echo "Building python2..."
- cd "${srcdir}/${pkgbase#*-}-${pkgver}-py2"
+ cd "${srcdir}/${_pkgname}-${pkgver}-py2"
python2 setup.py build
echo "Building python..."
- cd "${srcdir}/${pkgbase#*-}-${pkgver}"
+ cd "${srcdir}/${_pkgname}-${pkgver}"
python setup.py build
}
@@ -53,7 +54,7 @@ package_python2-wxutils() {
depends=(
"${_deppy2[@]}"
)
- cd ${pkgname#*-}-${pkgver}-py2
+ cd ${_pkgname}-${pkgver}-py2
python2 setup.py install --skip-build --root="${pkgdir}" --prefix=/usr
find "${pkgdir}" -type f -exec sed -i '1 s@^\(#!/usr/bin\(/env\s\+\)\?python\)\s*$@\12@' {} \;
@@ -64,7 +65,7 @@ package_python-wxutils() {
depends=(
"${_deppy[@]}"
)
- cd ${pkgname#*-}-${pkgver}
+ cd ${_pkgname}-${pkgver}
python setup.py install --skip-build --root="${pkgdir}" --prefix=/usr
}