summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aec452b7b5fcbae03329243963b723f15aee5e80 (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: Frederic Van Assche <frederic at fredericva.com>
pkgname=python-pylibtiff-git
pkgver=r125.e56519a
pkgrel=1
pkgdesc="A python wrapper of the C libtiff library"
arch=('any')
url="https://github.com/pearu/pylibtiff"
license=('custom')
depends=('python-numpy' 'libtiff')
makedepends=('python-setuptools' 'git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/pearu/pylibtiff.git")
sha256sums=('SKIP')

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

build() {
    cd $srcdir/pylibtiff
    python setup.py build
}

package() {
    cd $srcdir/pylibtiff
    python setup.py install --root="$pkgdir" --optimize=1 
}