Date: Thursday, May 25, 2017 @ 07:14:02 Author: felixonmars Revision: 296555
archrelease: copy trunk to extra-any Added: python-attrs/repos/extra-any/PKGBUILD (from rev 296554, python-attrs/trunk/PKGBUILD) Deleted: python-attrs/repos/extra-any/PKGBUILD ----------+ PKGBUILD | 104 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 52 insertions(+), 52 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-05-25 07:13:22 UTC (rev 296554) +++ PKGBUILD 2017-05-25 07:14:02 UTC (rev 296555) @@ -1,52 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-attrs -pkgname=('python-attrs' 'python2-attrs') -pkgver=17.1.0 -pkgrel=1 -pkgdesc="Attributes without boilerplate." -arch=('any') -license=('MIT') -url="https://attrs.readthedocs.org/" -makedepends=('python-setuptools' 'python2-setuptools') -checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-zope-interface' - 'python2-zope-interface' 'python-hypothesis' 'python2-hypothesis') -source=("https://pypi.io/packages/source/a/attrs/attrs-$pkgver.tar.gz") -sha512sums=('5d902dfefdcfdc693931e0600833d3bc412d26026fda8691cc8f2652b4e872dfd17ac600a463c11152df11db1c9bbf6e598360d1ead50d9ebf5bae4124921517') - -prepare() { - cp -a attrs-$pkgver{,-py2} -} - -build() { - cd "$srcdir"/attrs-$pkgver - python setup.py build - - cd "$srcdir"/attrs-$pkgver-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/attrs-$pkgver - python setup.py pytest - - cd "$srcdir"/attrs-$pkgver-py2 - python2 setup.py pytest -} - -package_python-attrs() { - depends=('python') - - cd attrs-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - -package_python2-attrs() { - depends=('python2') - - cd attrs-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} Copied: python-attrs/repos/extra-any/PKGBUILD (from rev 296554, python-attrs/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-05-25 07:14:02 UTC (rev 296555) @@ -0,0 +1,52 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-attrs +pkgname=('python-attrs' 'python2-attrs') +pkgver=17.2.0 +pkgrel=1 +pkgdesc="Attributes without boilerplate." +arch=('any') +license=('MIT') +url="https://attrs.readthedocs.org/" +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-zope-interface' + 'python2-zope-interface' 'python-hypothesis' 'python2-hypothesis') +source=("https://pypi.io/packages/source/a/attrs/attrs-$pkgver.tar.gz") +sha512sums=('02243e59ff417deddb330e841d42c0f43d3bea4435f114d3a9a8f4c3bd424c2ef565c630d179db7b3687d22091bf6e619de661171248c0ff0a0e5ec5f9bf7e21') + +prepare() { + cp -a attrs-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/attrs-$pkgver + python setup.py build + + cd "$srcdir"/attrs-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/attrs-$pkgver + python setup.py pytest + + cd "$srcdir"/attrs-$pkgver-py2 + python2 setup.py pytest +} + +package_python-attrs() { + depends=('python') + + cd attrs-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-attrs() { + depends=('python2') + + cd attrs-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}