summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 570ddd87032455516194771a5597c84b5dd94191 (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
# Maintainer: Markus Schaaf <markuschaaf@gmail.com>
pkgname=python2-xmp-toolkit
pkgver=r234.80ea772
pkgrel=1
pkgdesc='A library for working with XMP metadata'
arch=(any)
url='http://python-xmp-toolkit.readthedocs.org/'
license=(custom)
depends=('python2>=2.6'
         'exempi>=2.2.0')
source=('git+https://github.com/python-xmp-toolkit/python-xmp-toolkit.git')
md5sums=(SKIP)

pkgver() {
	cd "$srcdir/python-xmp-toolkit"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/python-xmp-toolkit"
	/usr/bin/python2 setup.py build
}

package() {
	cd "$srcdir/python-xmp-toolkit"
	install -d "$pkgdir/usr/share/licenses/$pkgname"
	install -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
	/usr/bin/python2 setup.py install --root="$pkgdir" --prefix=/usr --optimize=1
}