# Maintainer:
pkgname=py-exifread
_pkgname=ExifRead
pkgver=2.1.2
pkgrel=1
pkgdesc="Read Exif metadata from tiff and jpeg files"
url="https://pypi.python.org/pypi/ExifRead"
arch="noarch"
license="BSD"
depends="python2"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="8f5099e11e2137e0ce5acbec91c219be  ExifRead-2.1.2.tar.gz"
sha256sums="79e244f2eb466709029e8806fe5e2cdd557870c3db5f68954db0ef548d9320ad  ExifRead-2.1.2.tar.gz"
sha512sums="6357a96e6d5aeabe6b8eec519934e5754e09a53e5a3871254ee84f746ff8c2115dd175f1358a9d372ce2e3a062bf6f7be9d297661f5a4cf40b9c117d3f4e69d2  ExifRead-2.1.2.tar.gz"
