summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD25
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7e528804e5d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = python-fabio
+ pkgdesc = I/O library for images produced by 2D X-ray detectors.
+ pkgver = 0.4.0
+ pkgrel = 1
+ url = http://www.silx.org
+ arch = any
+ license = MIT
+ license = LGPL
+ license = Apache
+ makedepends = git
+ depends = python-numpy
+ depends = python-pillow
+ depends = python-lxml
+ optdepends = python-pyqt4: for the fabio_viewer program
+ source = https://github.com/silx-kit/fabio/archive/v0.4.0.tar.gz
+ sha1sums = c0ca0a6935e9213b567fdcfa77da05900a1abbc3
+
+pkgname = python-fabio
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d7b31d18ac8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Package maintainer: Leonid B <leonid dot bloch at esrf dot fr>
+# Upstream contact: silx at esrf dot fr
+pkgname=python-fabio
+pkgver=0.4.0
+pkgrel=1
+pkgdesc="I/O library for images produced by 2D X-ray detectors."
+arch=('any')
+url="http://www.silx.org"
+license=('MIT' 'LGPL' 'Apache')
+depends=('python-numpy' 'python-pillow' 'python-lxml')
+optdepends=('python-pyqt4: for the fabio_viewer program')
+makedepends=('git')
+source=("https://github.com/silx-kit/${pkgname#*-}/archive/v${pkgver}.tar.gz")
+sha1sums=('c0ca0a6935e9213b567fdcfa77da05900a1abbc3')
+
+build() {
+ cd "${srcdir}/${pkgname#*-}-${pkgver}"
+ python setup.py build
+}
+
+package() {
+ cd "${srcdir}/${pkgname#*-}-${pkgver}"
+ python setup.py install --root="${pkgdir}/" --optimize=1
+ install -D copyright "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}