Date: Tuesday, September 19, 2017 @ 10:22:30 Author: felixonmars Revision: 258828
try to fix broken pkgrelease Added: python-pyrsistent/repos/community-i686/LICENCE.mit python-pyrsistent/repos/community-i686/PKGBUILD Modified: python-pyrsistent/repos/community-x86_64/PKGBUILD ----------------------------+ community-i686/LICENCE.mit | 22 +++++++++++++++++ community-i686/PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++ community-x86_64/PKGBUILD | 4 +-- 3 files changed, 77 insertions(+), 2 deletions(-) Added: community-i686/LICENCE.mit =================================================================== --- community-i686/LICENCE.mit (rev 0) +++ community-i686/LICENCE.mit 2017-09-19 10:22:30 UTC (rev 258828) @@ -0,0 +1,22 @@ +Copyright (c) 2015 Tobias Gustafsson + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file Added: community-i686/PKGBUILD =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2017-09-19 10:22:30 UTC (rev 258828) @@ -0,0 +1,53 @@ +# $Id: PKGBUILD 258826 2017-09-19 10:19:45Z felixonmars $ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-pyrsistent +pkgname=('python-pyrsistent' 'python2-pyrsistent') +pkgver=0.13.0 +pkgrel=1 +pkgdesc="Persistent/Functional/Immutable data structures" +arch=('i686' 'x86_64') +license=('MIT') +url="https://github.com/tobgu/pyrsistent" +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-hypothesis' 'python2-hypothesis') +source=("https://pypi.io/packages/source/p/pyrsistent/pyrsistent-$pkgver.tar.gz" + LICENCE.mit) +sha512sums=('6bfb657841382c4ad402c383cae5092b83e93a3dde0b905f6cb8ca8a50b8acbe0f3241e9cc50cb83892c0d59b13145764faa2a3db1eabecbe6606a35d07bb5ff' + '036bd5cc2a62b004576ecc50a84dc7d187d8108f52cb886f7e32bed324327af2dc132100e1c8f1dd2ce35b774f74898020f04a315e5137319deda18a449e791a') + +prepare() { + cp -a pyrsistent-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/pyrsistent-$pkgver + python setup.py build + + cd "$srcdir"/pyrsistent-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/pyrsistent-$pkgver + python setup.py pytest + + cd "$srcdir"/pyrsistent-$pkgver-py2 + python2 setup.py pytest +} + +package_python-pyrsistent() { + depends=('python-six') + + cd pyrsistent-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 ../LICENCE.mit "$pkgdir"/usr/share/licenses/$pkgname/LICENCE.mit +} + +package_python2-pyrsistent() { + depends=('python2-six') + + cd pyrsistent-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 ../LICENCE.mit "$pkgdir"/usr/share/licenses/$pkgname/LICENCE.mit +} Modified: community-x86_64/PKGBUILD =================================================================== --- community-x86_64/PKGBUILD 2017-09-19 10:20:17 UTC (rev 258827) +++ community-x86_64/PKGBUILD 2017-09-19 10:22:30 UTC (rev 258828) @@ -3,7 +3,7 @@ pkgbase=python-pyrsistent pkgname=('python-pyrsistent' 'python2-pyrsistent') -pkgver=0.12.3 +pkgver=0.13.0 pkgrel=1 pkgdesc="Persistent/Functional/Immutable data structures" arch=('i686' 'x86_64') @@ -13,7 +13,7 @@ checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-hypothesis' 'python2-hypothesis') source=("https://pypi.io/packages/source/p/pyrsistent/pyrsistent-$pkgver.tar.gz" LICENCE.mit) -sha512sums=('f66449865c54ff05e85b6f51927d346b4699b6c41eeb0da6e81e92efa4b03c45c25296390914638fca44369420e0c57754e794995dac832453537c1ad29dfaa8' +sha512sums=('6bfb657841382c4ad402c383cae5092b83e93a3dde0b905f6cb8ca8a50b8acbe0f3241e9cc50cb83892c0d59b13145764faa2a3db1eabecbe6606a35d07bb5ff' '036bd5cc2a62b004576ecc50a84dc7d187d8108f52cb886f7e32bed324327af2dc132100e1c8f1dd2ce35b774f74898020f04a315e5137319deda18a449e791a') prepare() {