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

Evangelos Foutras foutrelis at archlinux.org
Fri Oct 25 16:21:45 UTC 2019


    Date: Friday, October 25, 2019 @ 16:21:45
  Author: foutrelis
Revision: 519437

archrelease: copy trunk to community-staging-any

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

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

Copied: python-piexif/repos/community-staging-any/PKGBUILD (from rev 519436, python-piexif/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 16:21:45 UTC (rev 519437)
@@ -0,0 +1,36 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+_name=piexif
+pkgname=python-piexif
+pkgver=1.1.3
+pkgrel=2
+pkgdesc="To simplify exif manipulations with python. Writing, reading, and more"
+arch=('any')
+url="https://github.com/hMatoba/Piexif"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-pillow' 'python-sphinx')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.zip")
+sha512sums=('df5f7793c39911af58bbae76cf998e2a7bc820b84dcf9808ee8f6a38f766f824fef28392ef88387e18b10c270c4b27881be310f0368076b6fb65379a11a93270')
+
+build() {
+  cd "${_name}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${_name}-${pkgver}"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  py.test
+}
+
+package() {
+  cd "${_name}-${pkgver}"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 LICENSE.txt \
+    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list