diff options
author | Erich Eckner <git@eckner.net> | 2020-02-24 10:09:03 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-02-24 10:23:52 +0100 |
commit | a004b95003a1b1bbcc67cce1c7a892a6b8920955 (patch) | |
tree | 6969747503bd99ea177d81b54125f510eb6374d9 /python-wxutils/PKGBUILD | |
parent | a7577a8315be644fd19c2e8f98db94df43d1343e (diff) | |
download | archlinuxewe-a004b95003a1b1bbcc67cce1c7a892a6b8920955.tar.xz |
python-wxutils: 0.2.3-2 -> 0.2.3-3
Diffstat (limited to 'python-wxutils/PKGBUILD')
-rwxr-xr-x | python-wxutils/PKGBUILD | 59 |
1 files changed, 10 insertions, 49 deletions
diff --git a/python-wxutils/PKGBUILD b/python-wxutils/PKGBUILD index 805e60ffb..962fef5a0 100755 --- a/python-wxutils/PKGBUILD +++ b/python-wxutils/PKGBUILD @@ -1,71 +1,32 @@ # Maintainer: Erich Eckner <arch at eckner dot net> -pkgbase=python-wxutils -pkgname=(python2-wxutils python-wxutils) -_pkgname="${pkgbase#*-}" +pkgname=python-wxutils +_pkgname="${pkgname#*-}" pkgver=0.2.3 -pkgrel=2 +pkgrel=3 pkgdesc='A library of convenience functions for wxPython' arch=('any') url='https://pypi.python.org/pypi/wxutils/0.1.2' license=('BSD') groups=() -_deppy2=( - 'python2>=2.7' - 'python2<2.8' - 'wxpython' -) -_deppy=( +depends=( 'python>=3.8' 'python<3.9' 'python-wxpython' ) -_makedepends=( - 'python-setuptools' -) makedepends=( - "${_deppy[@]}" - "${_deppy2[@]}" - "${_makedepends[@]}" - "${_makedepends[@]/ython/ython2}" + 'python-setuptools' ) source=( "https://pypi.python.org/packages/55/e9/dbec604ebb961cca28c6e835d050326d87f592d4bdc8171097230ea5b407/${_pkgname}-${pkgver}.tar.gz" ) sha512sums=('098d9b1030f16478db37960fcb9fc414222c8e3623bb6910b5281b986a43b4a6c879b1af09a836bd659b220aeb5e2d3f31d4d6474e241fe03c4893a3dea85218') -prepare() { - cp -a ${pkgbase#*-}-${pkgver}{,-py2} -} - build() { - - echo "Building python2..." - cd "${srcdir}/${_pkgname}-${pkgver}-py2" - python2 setup.py build - - echo "Building python..." - cd "${srcdir}/${_pkgname}-${pkgver}" - python setup.py build - + cd "${srcdir}/${_pkgname}-${pkgver}" + python setup.py build } -package_python2-wxutils() { - - depends=( - "${_deppy2[@]}" - ) - 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@' {} \; - -} - -package_python-wxutils() { - - depends=( - "${_deppy[@]}" - ) - cd ${_pkgname}-${pkgver} - python setup.py install --skip-build --root="${pkgdir}" --prefix=/usr - +package() { + cd "${_pkgname}-${pkgver}" + python setup.py install --skip-build --root="${pkgdir}" --prefix=/usr } |