summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6bf921e90d14324597e39002ba3a629c6e920fc7 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
pkgname=gpvdm-git
pkgver=4.40
pkgrel=1
pkgdesc="A numerical device model for the simulation of solar cells and OLEDs, git checkout"
arch=(x86_64)
url="http://www.gpvdm.com"
license=('GPL')
depends=(
python-numpy
python-matplotlib
python-pyqt5
python-psutil
python-opengl
python-cairo
python-dbus
suitesparse
gnuplot
superlu
python-dateutil
mencoder
imagemagick
blas
)

makedepends=(
git
python
libzip
gsl
zip
texlive-bin
texlive-core
autoconf
automake
python-pythondialog
help2man
)
provides=(gpvdm)
conflicts=(gpvdm)

source=(git+https://github.com/roderickmackenzie/gpvdm.git)
md5sums=('SKIP')

prepare() {
  cd gpvdm
  rm -rf gpvdm_core/libfit  # delete this for now to get this to build
}

build() {
  cd gpvdm
  PYTHONPATH=./build_system/ python -c "from make_m4 import make_m4; make_m4()"
  PYTHONPATH=./build_system/ python -c "from compile_menu import write_includes; write_includes()"
  for dir in gpvdm_core gpvdm_gui gpvdm_data
  do
    pushd $dir
    #autoreconf
    aclocal
    automake --add-missing
    automake
    autoconf
    if test "${dir}"x == "gpvdm_core"
    then
      ./configure CPPFLAGS="-I/usr/include/"
    else
      ./configure
    fi
    make clean
    make
    popd
  done
}

check() {
  cd gpvdm
  make -k check
}

package() {
  cd gpvdm
  #make DESTDIR="$pkgdir/" DEST_LIB=lib install
}