Date: Friday, July 21, 2017 @ 07:19:15 Author: felixonmars Revision: 245881
archrelease: copy trunk to community-any Added: python-pytools/repos/community-any/PKGBUILD (from rev 245880, python-pytools/trunk/PKGBUILD) Deleted: python-pytools/repos/community-any/PKGBUILD ----------+ PKGBUILD | 104 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 52 insertions(+), 52 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-07-21 07:18:57 UTC (rev 245880) +++ PKGBUILD 2017-07-21 07:19:15 UTC (rev 245881) @@ -1,52 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Stéphane Gaudreault <steph...@archlinux.org> - -pkgbase=python-pytools -pkgname=('python2-pytools' 'python-pytools') -pkgver=2017.3 -pkgrel=1 -pkgdesc="A collection of tools for Python" -arch=('any') -url="http://mathema.tician.de/software/pytools" -license=('MIT') -makedepends=('python-setuptools' 'python2-setuptools' 'python-decorator' 'python2-decorator' - 'python-six' 'python2-six' 'python-appdirs' 'python2-appdirs' 'python-numpy' - 'python2-numpy') -checkdepends=('python-pytest-runner' 'python2-pytest-runner') -source=("https://pypi.io/packages/source/p/pytools/pytools-$pkgver.tar.gz") -sha512sums=('d1102e0604e8060753ee25b1dc11fb135325cc8cdd5bfac0e04d0f431d7277e77846bda1e6017258df15384c0dfafdb370d473ec94d55dd4f87b30da0307615e') - -prepare() { - cp -a pytools-$pkgver{,-python2} -} - -build() { - cd "$srcdir"/pytools-$pkgver - python setup.py build - - cd "$srcdir"/pytools-$pkgver-python2 - python2 setup.py build -} - -check() { - cd "$srcdir"/pytools-$pkgver - python setup.py ptr - - cd "$srcdir"/pytools-$pkgver-python2 - python2 setup.py ptr -} - -package_python-pytools(){ - depends=('python-six' 'python-decorator' 'python-appdirs' 'python-numpy') - - cd pytools-$pkgver - python setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1 -} - -package_python2-pytools() { - depends=('python2-six' 'python2-decorator' 'python2-appdirs' 'python2-numpy') - - cd pytools-$pkgver-python2 - python2 setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1 -} Copied: python-pytools/repos/community-any/PKGBUILD (from rev 245880, python-pytools/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-07-21 07:19:15 UTC (rev 245881) @@ -0,0 +1,52 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Stéphane Gaudreault <steph...@archlinux.org> + +pkgbase=python-pytools +pkgname=('python2-pytools' 'python-pytools') +pkgver=2017.4 +pkgrel=1 +pkgdesc="A collection of tools for Python" +arch=('any') +url="http://mathema.tician.de/software/pytools" +license=('MIT') +makedepends=('python-setuptools' 'python2-setuptools' 'python-decorator' 'python2-decorator' + 'python-six' 'python2-six' 'python-appdirs' 'python2-appdirs' 'python-numpy' + 'python2-numpy') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("https://pypi.io/packages/source/p/pytools/pytools-$pkgver.tar.gz") +sha512sums=('4f588b725bc478303d539851110ad627baa2768d5d013434ca20e36fa315a842d0f7c3adebd5ae948f642fc5b9ad4940fbe1ee6afeaf0f16c4bc937210e9fa19') + +prepare() { + cp -a pytools-$pkgver{,-python2} +} + +build() { + cd "$srcdir"/pytools-$pkgver + python setup.py build + + cd "$srcdir"/pytools-$pkgver-python2 + python2 setup.py build +} + +check() { + cd "$srcdir"/pytools-$pkgver + python setup.py pytest + + cd "$srcdir"/pytools-$pkgver-python2 + python2 setup.py pytest +} + +package_python-pytools(){ + depends=('python-six' 'python-decorator' 'python-appdirs' 'python-numpy') + + cd pytools-$pkgver + python setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1 +} + +package_python2-pytools() { + depends=('python2-six' 'python2-decorator' 'python2-appdirs' 'python2-numpy') + + cd pytools-$pkgver-python2 + python2 setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1 +}