summaryrefslogtreecommitdiff
path: root/xraylarch/PKGBUILD
blob: b30953238251d3f8f4edf85bf633bcf8f08b6b4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=xraylarch
pkgver=0.9.27
pkgrel=2
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')
makedepends=()
checkdepends=()
optdepends=(
  'python2-termcolor:  needed for color-enhanced error messages'
  'python2-epics:  needed for using the EPICS control system'
  'python2-wxutils:  needed for graphics and plotting'
  'python2-wxmplot:  needed for graphics and plotting'
)
provides=()
conflicts=()
replaces=()
backup=()
options=()
source=(
    "${pkgname}-${pkgver}.tar.gz::https://github.com/xraypy/${pkgname}/archive/${pkgver}.tar.gz"
)
sha256sums=(
    "df85ba8002eda05d388f9564f01881b5ee2ff5eb86c8577c9e35592bc13cc67f"
)

package() {

    cd ${pkgname}-${pkgver}

#    sed "s|DEBUG = False|DEBUG = True|" -i setup.py

    python2 setup.py build
    python2 setup.py install --skip-build --root="${pkgdir}" --prefix=/usr

}