Date: Sunday, July 8, 2018 @ 13:43:25 Author: foutrelis Revision: 354898
archrelease: copy trunk to community-staging-any Added: python-funcy/repos/community-staging-any/ python-funcy/repos/community-staging-any/PKGBUILD (from rev 354897, python-funcy/trunk/PKGBUILD) ----------+ PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) Copied: python-funcy/repos/community-staging-any/PKGBUILD (from rev 354897, python-funcy/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2018-07-08 13:43:25 UTC (rev 354898) @@ -0,0 +1,53 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-funcy +pkgname=('python-funcy' 'python2-funcy') +pkgver=1.10.3 +pkgrel=2 +pkgdesc='A fancy and practical functional tools' +arch=('any') +license=('BSD') +url='https://github.com/Suor/funcy' +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-whatever' 'python2-whatever') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/Suor/funcy/archive/$pkgver.tar.gz") +sha512sums=('3ea72a596818b9bc8f89bf002634f595859588e5a2558416ceffa5703db60880c7fbaef8c0f9654b5d7d70b58e3b7282b53c295218d540dbc2a8a5b481562bb4') + +prepare() { + cp -a funcy-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/funcy-$pkgver + python setup.py build + + cd "$srcdir"/funcy-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/funcy-$pkgver + python setup.py pytest + + cd "$srcdir"/funcy-$pkgver-py2 + python2 setup.py pytest +} + +package_python-funcy() { + depends=('python') + + cd funcy-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-funcy() { + depends=('python2') + + cd funcy-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: