# Contributor: Peter Bui # Maintainer: pkgname=py-exifread _pkgname=ExifRead pkgver=2.0.1 pkgrel=1 pkgdesc="Read Exif metadata from tiff and jpeg files" url="https://pypi.python.org/pypi/ExifRead" arch="noarch" license="BSD" depends="python" depends_dev="" makedepends="python-dev py-setuptools" install="" subpackages="" source="http://pypi.python.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" python setup.py build || return 1 } package() { cd "$_builddir" python setup.py install --prefix=/usr --root="$pkgdir" || return 1 } md5sums="e1e1be39b8b991f3b7e481d4fb407d2f ExifRead-2.0.1.tar.gz" sha256sums="5db6f14157e59a3f54abe423e4d10e820f4003e2adb8bdc7155ebca9ae43484c ExifRead-2.0.1.tar.gz" sha512sums="ea46181512fe56660a7f88a08e30d99a2f35ff197b2d7ade3b61925115507ec7ba0f96c35f3b31a8528f91dd2ef0798e1667f703999d9f4ec4f38300fb4d898d ExifRead-2.0.1.tar.gz"