[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Thu Oct 25 18:19:21 UTC 2018


    Date: Thursday, October 25, 2018 @ 18:19:20
  Author: felixonmars
Revision: 399023

addpkg: python-wand 0.4.4-1

Added:
  python-wand/
  python-wand/repos/
  python-wand/trunk/
  python-wand/trunk/PKGBUILD

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Added: python-wand/trunk/PKGBUILD
===================================================================
--- python-wand/trunk/PKGBUILD	                        (rev 0)
+++ python-wand/trunk/PKGBUILD	2018-10-25 18:19:20 UTC (rev 399023)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at 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
+}



More information about the arch-commits mailing list