# Maintainer: Erich Eckner pkgname=xraylarch pkgver=0.9.29 pkgrel=1 pkgdesc="Data Analysis Tools for X-ray Spectroscopy" arch=('any') url="http://xraypy.github.io/xraylarch/" license=('BSD') groups=() depends=( 'python2' 'python2-sqlalchemy' 'python2-scipy' 'python2-matplotlib' 'python2-h5py' 'python2-numpy' 'wxpython' 'python2-wxutils' 'python2-wxmplot' ) makedepends=() checkdepends=() optdepends=( 'python2-termcolor: needed for color-enhanced error messages' 'python2-epics: needed for using the EPICS control system' ) provides=() conflicts=() replaces=() backup=() options=() source=( "${pkgname}-${pkgver}.tar.gz::https://github.com/xraypy/${pkgname}/archive/${pkgver}.tar.gz" ) sha512sums=('f191a17fc66cb7c890c54e4a99718097091c814357e05248c40e8fa8b1fea6af013e9a038eef81241bb08bfb78bd53879417c81b74a6145657849b7cb013c691') 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/* }