diff options
author | mrxx | 2015-09-16 19:14:28 +0200 |
---|---|---|
committer | mrxx | 2015-09-16 19:14:28 +0200 |
commit | aa0ba69c1ac3d91e8b0902f62bfd3a4709665360 (patch) | |
tree | 5d2b3b38fe0a840af2239822e86c19a7ab4ac78e | |
download | aur-aa0ba69c1ac3d91e8b0902f62bfd3a4709665360.tar.gz |
Updated to 2.1.2
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..244401165ad0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = exif-py + pkgdesc = Python module to extract Exif metadata from tiff and jpeg files. + pkgver = 2.1.2 + pkgrel = 1 + url = https://github.com/ianare/exif-py + arch = i686 + arch = x86_64 + license = custom:BSD + depends = python2 + source = https://github.com/ianare/exif-py/archive/2.1.2.tar.gz + md5sums = 931117de55f9ba02b412f131108aff0f + +pkgname = exif-py + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5678c4490e23 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: mrxx <mrxx at cyberhome dot at> +# Contributor: speps <speps at aur dot archlinux dot org> + +pkgname=exif-py +pkgver=2.1.2 +pkgrel=1 +pkgdesc="Python module to extract Exif metadata from tiff and jpeg files." +arch=('i686' 'x86_64') +url="https://github.com/ianare/exif-py" +license=('custom:BSD') +depends=('python2') +source=("https://github.com/ianare/exif-py/archive/$pkgver.tar.gz") +md5sums=('931117de55f9ba02b412f131108aff0f') + +prepare() { + sed -i '1s/python/&2/' "$srcdir/$pkgname-$pkgver/EXIF.py" +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + # lib + install -Dm755 EXIF.py "$pkgdir/usr/lib/python2.7/site-packages/EXIF.py" + + # bin + install -d "$pkgdir/usr/bin" + ln -s /usr/lib/python2.7/site-packages/EXIF.py "$pkgdir/usr/bin/exif-py" + + # docs + install -d "$pkgdir/usr/share/doc/$pkgname" + install -Dm644 README.rst ChangeLog.rst "$pkgdir/usr/share/doc/$pkgname" + + # license + install -d "$pkgdir/usr/share/licenses/$pkgname" + sed -n '51,80p' EXIF.py > "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ts=2 sw=2 et: |