Package Details: python-exiv2 0.7.1-1

Git Clone URL: https://aur.archlinux.org/python-exiv2.git (read-only)
Package Base: python-exiv2
Description: py3exiv2 is a Python3 binding to exiv2, the C++ library for manipulation of EXIF, IPTC and XMP image metadata.
Upstream URL: https://launchpad.net/py3exiv2
Keywords: graphics python
Licenses: GPL3
Submitter: artemklevtsov
Maintainer: spider-mario
Last Packager: spider-mario
Votes: 9
Popularity: 0.165652
First Submitted: 2016-03-19 22:15
Last Updated: 2019-06-03 20:18

Latest Comments

« First ‹ Previous 1 2

artemklevtsov commented on 2016-10-05 12:50

@ReedWood: thanks. Updated.

ReedWood commented on 2016-10-04 21:05

The pkgbuild at the end of this comment works with version 0.2.0.
I simply adapted pkgver, pkgrel, and the needed changes to the naming scheme of the source tar.gz and unpacked directory. The new version does not require changes to in build() or package().

---Start---
# Maintainer : Artem Klevtsov a.a.klevtsov@gmail.com

_pkgname=python3-exiv2
pkgname=python-exiv2
pkgver=0.2.0
pkgrel=1
pkgdesc="py3exiv2 is a Python3 binding to exiv2, the C++ library for manipulation of EXIF, IPTC and XMP image metadata."
url="https://launchpad.net/py3exiv2"
arch=('i686' 'x86_64')
depends=('python' 'boost-libs' 'exiv2')
makedepends=('boost')
license=('GPL3')
source=("http://www.py3exiv2.tuxfamily.org/releases/${_pkgname}_${pkgver}.tar.gz")
md5sums=('a1d9ff06e543a68f2fa1b01a9a52e8cf')

build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
mkdir build
g++ -o build/exiv2wrapper.os -c -fPIC -I/usr/include/python3.5m src/exiv2wrapper.cpp
g++ -o build/exiv2wrapper_python.os -c -fPIC -I/usr/include/python3.5m src/exiv2wrapper_python.cpp
g++ -o build/libexiv2python.so -shared build/exiv2wrapper.os build/exiv2wrapper_python.os -lboost_python3 -lexiv2
}

package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
mkdir -p "${pkgdir}/usr/lib/python3.5/site-packages/pyexiv2"
install -D -m755 build/libexiv2python.so "${pkgdir}/usr/lib/python3.5/site-packages/libexiv2python.so"
install -D -m644 src/pyexiv2/__init__.py "${pkgdir}/usr/lib/python3.5/site-packages/pyexiv2/__init__.py"
install -D -m644 src/pyexiv2/exif.py "${pkgdir}/usr/lib/python3.5/site-packages/pyexiv2/exif.py"
install -D -m644 src/pyexiv2/iptc.py "${pkgdir}/usr/lib/python3.5/site-packages/pyexiv2/iptc.py"
install -D -m644 src/pyexiv2/metadata.py "${pkgdir}/usr/lib/python3.5/site-packages/pyexiv2/metadata.py"
install -D -m644 src/pyexiv2/preview.py "${pkgdir}/usr/lib/python3.5/site-packages/pyexiv2/preview.py"
install -D -m644 src/pyexiv2/utils.py "${pkgdir}/usr/lib/python3.5/site-packages/pyexiv2/utils.py"
install -D -m644 src/pyexiv2/xmp.py "${pkgdir}/usr/lib/python3.5/site-packages/pyexiv2/xmp.py"
}
---End---

artemklevtsov commented on 2016-06-27 11:40

@DrTebi: thanks for the report.

DrTebi commented on 2016-06-27 08:13

boost is also a dependency.

Without it, I get this:

==> Starting build()...
In file included from src/exiv2wrapper.cpp:26:0:
src/exiv2wrapper.hpp:34:28: fatal error: boost/python.hpp: No such file or directory
#include "boost/python.hpp"
^
compilation terminated.
==> ERROR: A failure occurred in build().
Aborting...

With boost installed, the package installed successfully.