diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD new file mode 100644 index 0000000..5980d58 --- /dev/null +++ b/trunk/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Felix Yan + +pkgname=python-zope-copy +pkgver=4.2 +pkgrel=7 +pkgdesc="Pluggable object copying mechanism" +arch=('any') +url="https://github.com/zopefoundation/zope.copy" +license=('ZPL') +depends=('python-setuptools' 'python-zope-interface') +checkdepends=('python-zope-testrunner' 'python-zope-testing' 'python-zope-location') +source=("$pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/zope.copy/archive/$pkgver.tar.gz") +sha512sums=('99c1062bdad919c0aa8f1daf1f7a2af1e42227a2a22e4a983eb848edf6be144fec97b9f7dd43d592121c8e72c3525b316e7367e226a33e97272061b666fb466b') + +build() { + cd "$srcdir"/zope.copy-$pkgver + python setup.py build +} + +check() { + cd "$srcdir"/zope.copy-$pkgver + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m zope.testrunner --test-path=src || echo "Tests failed" +} + +package() { + cd "$srcdir"/zope.copy-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} + +# vim:set ts=2 sw=2 et: diff --git a/x86_64/community-staging/PKGBUILD b/x86_64/community-staging/PKGBUILD new file mode 100644 index 0000000..5980d58 --- /dev/null +++ b/x86_64/community-staging/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Felix Yan + +pkgname=python-zope-copy +pkgver=4.2 +pkgrel=7 +pkgdesc="Pluggable object copying mechanism" +arch=('any') +url="https://github.com/zopefoundation/zope.copy" +license=('ZPL') +depends=('python-setuptools' 'python-zope-interface') +checkdepends=('python-zope-testrunner' 'python-zope-testing' 'python-zope-location') +source=("$pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/zope.copy/archive/$pkgver.tar.gz") +sha512sums=('99c1062bdad919c0aa8f1daf1f7a2af1e42227a2a22e4a983eb848edf6be144fec97b9f7dd43d592121c8e72c3525b316e7367e226a33e97272061b666fb466b') + +build() { + cd "$srcdir"/zope.copy-$pkgver + python setup.py build +} + +check() { + cd "$srcdir"/zope.copy-$pkgver + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m zope.testrunner --test-path=src || echo "Tests failed" +} + +package() { + cd "$srcdir"/zope.copy-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} + +# vim:set ts=2 sw=2 et: