summaryrefslogtreecommitdiff
path: root/.demeter/PKGBUILD
blob: 233ad920f014f5290ca8f5419175e2eb4f773028 (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
63
64
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=demeter
pkgver=0.9.24
pkgrel=1
pkgdesc="Data Analysis Tools for X-ray Spectroscopy"
arch=('any')
url="https://bruceravel.github.io/demeter"
license=('BSD')
groups=()
depends=(
    'ifeffit'
    'perl-module-build'
)
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
source=(
    "${pkgname}-${pkgver}.tar.gz::https://github.com/bruceravel/${pkgname}/archive/${pkgver}.tar.gz"
)
sha256sums=('f85262921e9eb646c7989ee73da760edc5fa27d5b97d1a4b3e597cd750920d8a')

prepare() {

    cd ${pkgname}-${pkgver}
    rm t/t

}

build() {
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
      PERL_AUTOINSTALL=--skipdeps                            \
      PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
      PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
      MODULEBUILDRC=/dev/null

    cd ${pkgname}-${pkgver}
    perl ./Build.PL
    ./Build
  )
}

check() {

    cd ${pkgname}-${pkgver}
    ./Build test

}

package() {

    cd ${pkgname}-${pkgver}
    ./Build install --help

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

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

}