# Maintainer: Erich Eckner pkgname=xraylarch pkgver=0.9.35 pkgrel=1 pkgdesc="Data Analysis Tools for X-ray Spectroscopy" arch=('i686' 'x86_64') url="http://xraypy.github.io/xraylarch/" license=('BSD') groups=() depends=( 'python2' 'python2-h5py' 'python2-lmfit' 'python2-matplotlib' 'python2-numpy' 'python2-pillow' 'python2-requests' 'python2-scipy' 'python2-sqlalchemy' 'python2-wxutils' 'python2-wxmplot' 'wxpython' ) makedepends=() checkdepends=() optdepends=( 'python2-CifFile: needed for xrd modules' 'python2-epics: needed for using the EPICS control system' 'python2-fabio: needed for xrd modules' 'python2-nose: needed for testing tools' 'python2-pyFAI: needed for xrd modules' 'python2-termcolor: needed for color-enhanced error messages' 'python2-xrayutilities: needed for xrd modules' 'python2-yaml: needed for graphics and plotting' ) provides=() conflicts=() replaces=() backup=() options=() source=( "${pkgname}-${pkgver}.tar.gz::https://github.com/xraypy/${pkgname}/archive/${pkgver}.tar.gz" ) sha512sums=('c4ccdea3b88c1a4f1abf9aff1c968f782d0ccab73bebe5777b5f799570f9508ddb37f8ffe329c0a7873d1a906b153e1820fe2be7804c5a656bafdfec2272b9b8') build() { cd ${pkgname}-${pkgver} # sed "s|DEBUG = False|DEBUG = True|" -i setup.py python2 setup.py build } package() { cd ${pkgname}-${pkgver} python2 setup.py install --skip-build --root="${pkgdir}" --prefix=/usr sed "s| python\$| python2|" -i $pkgdir/usr/bin/* }