Date: Thursday, August 27, 2015 @ 10:24:22 Author: fyan Revision: 138808
addpkg: python-dogpile.core 0.4.1-3 Added: python-dogpile.core/ python-dogpile.core/repos/ python-dogpile.core/trunk/ python-dogpile.core/trunk/PKGBUILD ----------+ PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) Added: python-dogpile.core/trunk/PKGBUILD =================================================================== --- python-dogpile.core/trunk/PKGBUILD (rev 0) +++ python-dogpile.core/trunk/PKGBUILD 2015-08-27 08:24:22 UTC (rev 138808) @@ -0,0 +1,56 @@ +# $Id$ +# Maintainer: Felix Yan <[email protected]> +# Contributor: Sibren Vasse <arch at sibrenvasse.nl> +# Contributor: Quentin Stievenart <[email protected]> + +pkgbase=python-dogpile.core +pkgname=(python-dogpile.core python2-dogpile.core) +_pypiname=dogpile.core +pkgver=0.4.1 +pkgrel=3 +pkgdesc="A 'dogpile' lock, typically used as a component of a larger caching solution" +arch=('any') +url="http://pypi.python.org/pypi/dogpile.core" +license=('BSD') +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-nose' 'python2-nose') +source=("http://pypi.python.org/packages/source/d/$_pypiname/$_pypiname-$pkgver.tar.gz") +md5sums=('01cb19f52bba3e95c9b560f39341f045') + +prepare() { + cp -a "$_pypiname-$pkgver"{,-py2} +} + +build() { + cd $_pypiname-$pkgver + python setup.py build + + cd ../$_pypiname-$pkgver-py2 + python2 setup.py build +} + +check() { + cd $_pypiname-$pkgver + nosetests3 + + cd ../$_pypiname-$pkgver-py2 + nosetests2 +} + +package_python-dogpile.core() { + depends=('python') + + cd "$srcdir/$_pypiname-$pkgver" + python setup.py install --root="$pkgdir/" --optimize=1 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-dogpile.core() { + depends=('python2') + + cd "$srcdir/$_pypiname-$pkgver-py2" + python2 setup.py install --root="$pkgdir/" --optimize=1 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ts=2 sw=2 et: Property changes on: python-dogpile.core/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property
