blob: b4083c325c5300dbdf01af170ac9b3c72e19e212 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Jose Riha <jose1711 gmail com>
pkgname=python2-exifread
_name="exif-py"
pkgver=2.3.2
pkgrel=1
pkgdesc="Python library to extract EXIF data from tiff and jpeg files"
arch=('any')
url="https://github.com/ianare/exif-py"
license=('BSD')
depends=('python2')
makedepends=('python2-setuptools')
# 2.2.0 was not properly uploaded to PyPi, download the tarball from project's
# release page instead: https://github.com/ianare/exif-py/issues/97
source=("$pkgname-$pkgver.tar.gz::https://github.com/ianare/$_name/archive/$pkgver.tar.gz")
sha1sums=('9653949851358b6a65fa784601bfe9306621aec6')
sha256sums=('b595f8644a456d00df98b2f83b5fe17682bba0e7e9f7c8b39fb7130a80b73b0a')
build() {
cd "$_name-$pkgver"
python2 setup.py build
}
package() {
cd "$_name-$pkgver"
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
rm ${pkgdir}/usr/bin/EXIF.py
}
# vim:set ts=2 sw=2 et:
|