[arch-commits] Commit in python-piexif/repos/community-testing-any (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Sat Sep 8 12:49:00 UTC 2018


    Date: Saturday, September 8, 2018 @ 12:48:59
  Author: dvzrv
Revision: 378811

archrelease: copy trunk to community-testing-any

Added:
  python-piexif/repos/community-testing-any/PKGBUILD
    (from rev 378810, python-piexif/trunk/PKGBUILD)
Deleted:
  python-piexif/repos/community-testing-any/PKGBUILD

----------+
 PKGBUILD |   95 +++++++++++++++++++++++++++++++++++--------------------------
 1 file changed, 55 insertions(+), 40 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-09-08 12:48:49 UTC (rev 378810)
+++ PKGBUILD	2018-09-08 12:48:59 UTC (rev 378811)
@@ -1,40 +0,0 @@
-# Maintainer: David Runge <dave at sleepmap.de>
-_name=piexif
-pkgname=python-piexif
-pkgver=1.0.13
-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=('4234783a639e777b58eb0b4591a272d7d5e8c116a7a242cf36287e64d15089478c88327a16b4fa75786fc3621a6bf647f6a075fab0708e2d0aed6395f95b92cb')
-
-prepare() {
-  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  export PYTHONPATH=build:${PYTHONPATH}
-  py.test
-}
-
-package() {
-  cd "$pkgname-$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}"
-}

Copied: python-piexif/repos/community-testing-any/PKGBUILD (from rev 378810, python-piexif/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-09-08 12:48:59 UTC (rev 378811)
@@ -0,0 +1,55 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+_name=piexif
+pkgbase=python-piexif
+pkgname=('python-piexif' 'python2-piexif')
+pkgver=1.0.13
+pkgrel=3
+pkgdesc="To simplify exif manipulations with python. Writing, reading, and more"
+arch=('any')
+url="https://github.com/hMatoba/Piexif"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python-pillow' 'python-sphinx' 'python2-pytest' 'python2-pillow' 'python2-sphinx')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.zip")
+sha512sums=('4234783a639e777b58eb0b4591a272d7d5e8c116a7a242cf36287e64d15089478c88327a16b4fa75786fc3621a6bf647f6a075fab0708e2d0aed6395f95b92cb')
+
+prepare() {
+  mv -v "${_name}-$pkgver" "$pkgbase-$pkgver"
+}
+
+build() {
+  cd "$pkgbase-$pkgver"
+  python setup.py build
+  python2 setup.py build
+}
+
+check() {
+  cd "$pkgbase-$pkgver"
+  export PYTHONPATH=build:${PYTHONPATH}
+  py.test
+  py.test2
+}
+
+package_python-piexif() {
+  cd "$pkgbase-$pkgver"
+  depends=('python')
+  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}"
+}
+
+package_python2-piexif() {
+  cd "$pkgbase-$pkgver"
+  depends=('python2')
+  python2 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