Date: Thursday, November 22, 2018 @ 21:59:19 Author: felixonmars Revision: 409376
archrelease: copy trunk to community-any Added: python-sortedcontainers/repos/community-any/PKGBUILD (from rev 409375, python-sortedcontainers/trunk/PKGBUILD) Deleted: python-sortedcontainers/repos/community-any/PKGBUILD ----------+ PKGBUILD | 103 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 51 insertions(+), 52 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-11-22 21:59:02 UTC (rev 409375) +++ PKGBUILD 2018-11-22 21:59:19 UTC (rev 409376) @@ -1,52 +0,0 @@ -# $Id: PKGBUILD 141139 2015-09-20 03:14:59Z fyan $ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-sortedcontainers -pkgname=('python-sortedcontainers' 'python2-sortedcontainers') -pkgver=2.0.5 -pkgrel=1 -pkgdesc="Python Sorted Container Types: SortedList, SortedDict, and SortedSet" -arch=('any') -license=('Apache') -url="http://www.grantjenks.com/docs/sortedcontainers/" -makedepends=('python-setuptools' 'python2-setuptools') -checkdepends=('python-pytest-runner' 'python2-pytest-runner') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/grantjenks/python-sortedcontainers/archive/v$pkgver.tar.gz") -sha512sums=('0094418e21ba0fd43ca83b04b75350a1e513c4533bbb939d9427ff35d7270324aa360554de0dec0f8d3e9666fd48b6e05f13824d3661e6cbfda46f56bcfdd87e') - -prepare() { - # Don't use tox - sed -i '/tests_require/d' python-sortedcontainers-$pkgver/setup.py - - cp -a python-sortedcontainers-$pkgver{,-py2} -} - -build() { - cd "$srcdir"/python-sortedcontainers-$pkgver - python setup.py build - - cd "$srcdir"/python-sortedcontainers-$pkgver-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/python-sortedcontainers-$pkgver - python setup.py pytest - - cd "$srcdir"/python-sortedcontainers-$pkgver-py2 - python2 setup.py pytest -} - -package_python-sortedcontainers() { - depends=('python') - - cd python-sortedcontainers-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 -} - -package_python2-sortedcontainers() { - depends=('python2') - - cd python-sortedcontainers-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 -} Copied: python-sortedcontainers/repos/community-any/PKGBUILD (from rev 409375, python-sortedcontainers/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-11-22 21:59:19 UTC (rev 409376) @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-sortedcontainers +pkgname=('python-sortedcontainers' 'python2-sortedcontainers') +pkgver=2.1.0 +pkgrel=1 +pkgdesc="Python Sorted Container Types: SortedList, SortedDict, and SortedSet" +arch=('any') +license=('Apache') +url="http://www.grantjenks.com/docs/sortedcontainers/" +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/grantjenks/python-sortedcontainers/archive/v$pkgver.tar.gz") +sha512sums=('1c56daea5d491dbeea9c677677a79ef5c4805325ea3d5da97005cd3b269003a99459550a793dfe65820f152c774371472ba471a7daf61c9d97b36744bafb013b') + +prepare() { + # Don't use tox + sed -i '/tests_require/d' python-sortedcontainers-$pkgver/setup.py + + cp -a python-sortedcontainers-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/python-sortedcontainers-$pkgver + python setup.py build + + cd "$srcdir"/python-sortedcontainers-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/python-sortedcontainers-$pkgver + python setup.py pytest + + cd "$srcdir"/python-sortedcontainers-$pkgver-py2 + python2 setup.py pytest +} + +package_python-sortedcontainers() { + depends=('python') + + cd python-sortedcontainers-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} + +package_python2-sortedcontainers() { + depends=('python2') + + cd python-sortedcontainers-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 +}