Date: Friday, October 28, 2016 @ 10:38:27 Author: felixonmars Revision: 193886
addpkg: python-whatever 0.4.1-1 Added: python-whatever/ python-whatever/repos/ python-whatever/trunk/ python-whatever/trunk/PKGBUILD ----------+ PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) Added: python-whatever/trunk/PKGBUILD =================================================================== --- python-whatever/trunk/PKGBUILD (rev 0) +++ python-whatever/trunk/PKGBUILD 2016-10-28 10:38:27 UTC (rev 193886) @@ -0,0 +1,53 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-whatever +pkgname=('python-whatever' 'python2-whatever') +pkgver=0.4.1 +pkgrel=1 +pkgdesc='Easy way to make anonymous functions by partial application of operators' +arch=('any') +license=('BSD') +url='https://github.com/Suor/whatever' +makedepends=('python-setuptools' 'python2-setuptools' 'git') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("git+https://github.com/Suor/whatever.git#tag=$pkgver") +md5sums=('SKIP') + +prepare() { + cp -a whatever{,-py2} +} + +build() { + cd "$srcdir"/whatever + python setup.py build + + cd "$srcdir"/whatever-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/whatever + python setup.py ptr + + cd "$srcdir"/whatever-py2 + python2 setup.py ptr +} + +package_python-whatever() { + depends=('python') + + cd whatever + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-whatever() { + depends=('python2') + + cd whatever-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: Property changes on: python-whatever/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property