[arch-commits] Commit in python-pilkit/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Nov 10 03:59:38 UTC 2020


    Date: Tuesday, November 10, 2020 @ 03:59:38
  Author: felixonmars
Revision: 748325

archrelease: copy trunk to community-staging-any

Added:
  python-pilkit/repos/community-staging-any/
  python-pilkit/repos/community-staging-any/PKGBUILD
    (from rev 748323, python-pilkit/trunk/PKGBUILD)

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

Copied: python-pilkit/repos/community-staging-any/PKGBUILD (from rev 748323, python-pilkit/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 03:59:38 UTC (rev 748325)
@@ -0,0 +1,38 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+_name=pilkit
+pkgname=python-pilkit
+pkgver=2.0
+pkgrel=6
+pkgdesc="A collection of utilities for working with PIL (the Python Imaging Library)"
+arch=('any')
+url="https://github.com/matthewwithanm/pilkit"
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-nose' 'python-nose-progressive' 'python-pillow')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('7618d7de125f2813b25d707b02b70ca9cb4e19105ed0eb3be3ff6b926a812ed2a609e54f8e86535641fc4baef265fae58d70290c14011eeea744e90066b7bdae')
+
+prepare() {
+  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  python setup.py test
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 {AUTHORS,README.rst} -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}



More information about the arch-commits mailing list