Date: Thursday, October 25, 2018 @ 18:19:40 Author: felixonmars Revision: 399024
archrelease: copy trunk to community-any Added: python-wand/repos/community-any/ python-wand/repos/community-any/PKGBUILD (from rev 399023, python-wand/trunk/PKGBUILD) ----------+ PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) Copied: python-wand/repos/community-any/PKGBUILD (from rev 399023, python-wand/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2018-10-25 18:19:40 UTC (rev 399024) @@ -0,0 +1,32 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-wand +pkgver=0.4.4 +pkgrel=1 +pkgdesc="Ctypes-based simple MagickWand API binding for Python" +url="https://github.com/emcconville/wand" +license=('MIT') +arch=('any') +depends=('imagemagick6' 'libxml2' 'python') +makedepends=('python-setuptools') +checkdepends=('python-pytest-runner' 'python-pytest-xdist' 'python-memory-profiler' 'python-psutil') +source=("$pkgname-$pkgver.tar.gz::https://github.com/emcconville/wand/archive/$pkgver.tar.gz") +sha512sums=('6083f69e539d8b95774c2b3b27f51ac3642fa81dbdf25170141cc3da2fa640b57ba26cf92d16768be4ae345f26a10d289cfc598c2a9bb99625b105a99feba438') + +build() { + cd wand-$pkgver + python setup.py build +} + +check() { + cd wand-$pkgver + python setup.py pytest || warning "Tests failed" +} + +package() { + cd wand-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + + rm "$pkgdir"/usr/README.rst +}