summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Van Assche2017-01-25 11:21:06 +0100
committerFrederic Van Assche2017-01-25 11:21:06 +0100
commit26e6380b581a6a8c3087137dabd251b2ec6f944c (patch)
treed95942bd97886e1eeef669a1665dd7171164f76a
downloadaur-26e6380b581a6a8c3087137dabd251b2ec6f944c.tar.gz
Initial commit
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD29
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..050e382c57b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Wed Jan 25 10:20:56 UTC 2017
+pkgbase = python-pylibtiff-git
+ pkgdesc = A python wrapper of the C libtiff library
+ pkgver = r125.e56519a
+ pkgrel = 1
+ url = https://github.com/pearu/pylibtiff
+ arch = any
+ license = custom
+ makedepends = python-setuptools
+ makedepends = git
+ depends = python-numpy
+ depends = libtiff
+ provides = python-pylibtiff
+ conflicts = python-pylibtiff
+ source = python-pylibtiff::git+https://github.com/pearu/pylibtiff.git
+ sha256sums = SKIP
+
+pkgname = python-pylibtiff-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..aec452b7b5f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}