summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD22
2 files changed, 13 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8f11d047c30..b3ca9acfa2e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,17 @@
+# Generated by mksrcinfo v8
+# Sat Apr 2 00:08:46 UTC 2016
pkgbase = pyexiftool
pkgdesc = Library to communicate with an instance of ExifTool command-line application
pkgver = 0.2.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/smarnach/pyexiftool
arch = any
license = GPL3
makedepends = python
makedepends = python2
makedepends = python-sphinx
+ makedepends = perl-image-exiftool
+ options = !makeflags
source = pyexiftool-0.2.0.tar.gz::https://github.com/smarnach/pyexiftool/archive/v0.2.0.tar.gz
sha512sums = 88595c01fa68f7c4d0b604182b6278a53e6a61832b16dfda306a5bb89e767a3629d030a0f0c6a8566e0cf2df4a449b87d39aa40baea91b4267a85824f61d492a
diff --git a/PKGBUILD b/PKGBUILD
index c04f7a7b529..fa921cf35bb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,36 +1,31 @@
-# Maintainer: Levente Polyak <levente[at]leventepolyak[dot]net>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
pkgbase=pyexiftool
pkgname=('python-pyexiftool' 'python2-pyexiftool')
pkgver=0.2.0
-pkgrel=1
+pkgrel=2
pkgdesc="Library to communicate with an instance of ExifTool command-line application"
url="https://github.com/smarnach/pyexiftool"
arch=('any')
license=('GPL3')
-makedepends=('python' 'python2' 'python-sphinx')
+makedepends=('python' 'python2' 'python-sphinx' 'perl-image-exiftool')
+options=('!makeflags')
source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/smarnach/${pkgbase}/archive/v${pkgver}.tar.gz)
sha512sums=('88595c01fa68f7c4d0b604182b6278a53e6a61832b16dfda306a5bb89e767a3629d030a0f0c6a8566e0cf2df4a449b87d39aa40baea91b4267a85824f61d492a')
-prepare() {
- cd ${pkgbase}-${pkgver}
- sed -ri 's|(import exiftool)|import sys, os\nsys.path.append(os.getcwd())\n\1|' test/test_exiftool.py
-}
-
check() {
cd ${pkgbase}-${pkgver}
- python test/test_exiftool.py
- python2 test/test_exiftool.py
+ PYTHONPATH=".:${PYTHONPATH}" python test/test_exiftool.py
+ PYTHONPATH=".:${PYTHONPATH}" python2 test/test_exiftool.py
}
build() {
- cd ${pkgbase}-${pkgver}/doc
- make text man
+ cd ${pkgbase}-${pkgver}
+ make -C doc man text
}
package_python-pyexiftool() {
depends=('python' 'perl-image-exiftool')
-
cd ${pkgbase}-${pkgver}
python setup.py install -O1 --prefix=/usr --root="${pkgdir}"
install -Dm 644 doc/_build/text/index.txt "${pkgdir}/usr/share/doc/${pkgname}/README"
@@ -39,7 +34,6 @@ package_python-pyexiftool() {
package_python2-pyexiftool() {
depends=('python2' 'perl-image-exiftool')
-
cd ${pkgbase}-${pkgver}
python2 setup.py install -O1 --prefix=/usr --root="${pkgdir}"
install -Dm 644 doc/_build/text/index.txt "${pkgdir}/usr/share/doc/${pkgname}/README"