From 2cf194a7d101ae3848e1192542002e6ebacb5225 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 24 Feb 2020 09:37:30 +0100 Subject: python-pycifrw: 4.4.1-2 -> 4.4.1-3 --- python-pycifrw/PKGBUILD | 53 +++++++------------------------------------------ 1 file changed, 7 insertions(+), 46 deletions(-) diff --git a/python-pycifrw/PKGBUILD b/python-pycifrw/PKGBUILD index f2b17d0f3..3174abef4 100644 --- a/python-pycifrw/PKGBUILD +++ b/python-pycifrw/PKGBUILD @@ -1,64 +1,25 @@ # Maintainer: Erich Eckner -pkgbase=python-pycifrw -pkgname=(python2-pycifrw python-pycifrw) +pkgname=python-pycifrw _pkgname='PyCifRW' pkgver=4.4.1 -pkgrel=2 +pkgrel=3 pkgdesc='Python library for interacting with Crystallographic Information Framework (CIF) files.' arch=('i686' 'pentium4' 'x86_64') url='https://bitbucket.org/jamesrhester/pycifrw/src/development/' license=('custom') -_deppy2=( - 'python2>=2.7' - 'python2<2.8' -) -_deppy=( +depends=( 'python>=3.8' - 'python<3.9' -) -_depends=( - 'python') -_makedepends=( + 'python<3.9') +makedepends=( 'python-setuptools') source=("https://pypi.python.org/packages/b3/09/7578e066d81ba978b6eefe2330cc80940939ed4be423e1c8ef49181540ca/PyCifRW-${pkgver}.tar.gz") sha512sums=('41cc26a7d6026bb927d531b27e1228d89fe713f7ab9360b8e06b563449ee7b53afc9260d09bb199f4390b12a9d31573f8fa6bae14804239d4075b5d8dce01f54') -makedepends=( - "${_deppy[@]}" - "${_deppy2[@]}" - "${_depends[@]}" - "${_depends[@]//python/python2}" - "${_makedepends[@]}" - "${_makedepends[@]//ython/ython2}" -) - -prepare() { - cp -r ${_pkgname}-${pkgver}{,-py2} -} - build() { - ( - echo "building python2" - cd ${_pkgname}-${pkgver}-py2 - python2 setup.py build - ) - ( - echo "building python" - cd ${_pkgname}-${pkgver} - python setup.py build - ) -} - -package_python2-pycifrw() { - depends=( - "${_deppy2[@]}" - "${_depends[@]//python/python2}" - ) - cd "${srcdir}/${_pkgname}-${pkgver}-py2" - python2 setup.py install --root="${pkgdir}/" --optimize=1 --skip-build - install -D 'LICENSE' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + cd ${_pkgname}-${pkgver} + python setup.py build } package_python-pycifrw() { -- cgit v1.2.3-70-g09d2