diff options
author | Eugene Dvoretsky | 2017-05-03 21:45:18 +0300 |
---|---|---|
committer | Eugene Dvoretsky | 2017-05-03 21:45:18 +0300 |
commit | 4e2faa0e436f2b5eee2e79e97b3e6fda829bf361 (patch) | |
tree | c5434ceaafa630c6516ac2ddf6b2865ece9536cd /PKGBUILD | |
download | aur-4e2faa0e436f2b5eee2e79e97b3e6fda829bf361.tar.gz |
Init
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..416b4cc30f87 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Eugene Dvoretsky <radioxoma at gmail dot com> + +pkgname=python2-pylibtiff-git +pkgver=r138.33735eb +pkgrel=1 +pkgdesc="A python wrapper of the C libtiff library" +arch=('i686' 'x86_64') +url="https://github.com/pearu/pylibtiff" +license=('BSD') +depends=('python2-numpy' 'libtiff') +makedepends=('python2-setuptools' 'git') +provides=('python2-libtiff' 'python2-pylibtiff') +conflicts=('python2-libtiff-svn') +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/python2-pylibtiff + python2 setup.py build + + # Don't care about "ImportError: No module named tif_lzw" + python2 -c "from libtiff import TIFF" || true +} + +package() { + cd $srcdir/python2-pylibtiff + python2 setup.py install --root="$pkgdir" --optimize=1 +} |