diff options
author | Erich Eckner <git@eckner.net> | 2020-02-24 09:39:26 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-02-24 09:39:26 +0100 |
commit | c00e182c726c809b107d7aa1a91c9f75d9f0d4b7 (patch) | |
tree | 66b0cf68c0c70898d9157ae2ce2a50dfe56a9780 | |
parent | 7b9848e008392844abbe847e42b6bf19bc9087e9 (diff) | |
download | archlinuxewe-c00e182c726c809b107d7aa1a91c9f75d9f0d4b7.tar.xz |
python-peakutils: 1.3.3-1 -> 1.3.3-2
-rw-r--r-- | python-peakutils/PKGBUILD | 55 |
1 files changed, 7 insertions, 48 deletions
diff --git a/python-peakutils/PKGBUILD b/python-peakutils/PKGBUILD index 1fd52e3c3..93b017552 100644 --- a/python-peakutils/PKGBUILD +++ b/python-peakutils/PKGBUILD @@ -1,70 +1,29 @@ # Maintainer: Erich Eckner <arch at eckner dot net> # Contributor: Jakob Nixdorf <flocke@shadowice.org> -pkgbase=python-peakutils -pkgname=('python-peakutils' 'python2-peakutils') +pkgname='python-peakutils' _pkgname='PeakUtils' pkgver=1.3.3 -pkgrel=1 +pkgrel=2 pkgdesc="Peak detection utilities for 1D data" arch=('any') url="https://pypi.python.org/pypi/PeakUtils" license=('MIT') -_deppy2=( - 'python2>=2.7' - 'python2<2.8' -) -_deppy=( +_depends=( 'python>=3.8' 'python<3.9' -) -_depends=( 'python-sphinx-better-theme') -_makedepends=( - 'python-setuptools') makedepends=( - "${_deppy[@]}" - "${_deppy2[@]}" - "${_depends[@]}" - "${_depends[@]/python/python2}" - "${_makedepends[@]}" - "${_makedepends[@]/python/python2}" -) + 'python-setuptools') source=("https://pypi.python.org/packages/58/f6/7e48831854794d582953246405deba4849f358f7e5e1c48a1ca76b565ffb/${_pkgname}-${pkgver}.tar.gz") sha512sums=('c6bc49907221b11ca4af204f55b24e8ca2b8267e989d9971523d33077519027ffc140883c8dca5988f04a4adf2e02d5c15b595d5474b2be410cc8ca87840cf4a') -prepare() { - cd "${srcdir}" - - cp -a "${_pkgname}-${pkgver}" "${pkgname[0]}" - mv "${_pkgname}-${pkgver}" "${pkgname[1]}" -} - build() { - cd "${srcdir}/${pkgname[0]}" + cd "${srcdir}/${_pkgname}-${pkgver}" python setup.py build - - cd "${srcdir}/${pkgname[1]}" - python2 setup.py build } -package_python-peakutils() { - depends=( - "${_deppy[@]}" - "${_depends[@]}" - ) - - cd "${srcdir}/${pkgname[0]}" +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 } - -package_python2-peakutils() { - depends=( - "${_deppy2[@]}" - "${_depends[@]/python/python2}" - ) - - cd "${srcdir}/${pkgname[1]}" - python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 -} - |