summaryrefslogtreecommitdiff
path: root/xraylarch/PKGBUILD
blob: 7c8ea4d1c0d31e39120a493a2a92a0e829ae4677 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=xraylarch
pkgver=0.9.36
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-peakutils'
  'python2-pillow'
  'python2-psutil'
  'python2-requests'
  'python2-scipy'
  'python2-sqlalchemy'
  'python2-termcolor'
  '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-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=('0210ab4524299fdded5f5e3c6e4382b3da5b39d87fcfb2290bfdbc651cc7483381d53a463586bf0009127c741a6122a6ac7a862aac376e4e6d6496f3b235ae6a')

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/*

}