1 # Maintainer: Beej Jorgensen <beej@beej.us>
5 pkgdesc="Cave map rendering software"
7 url="http://therion.speleo.sk/"
9 depends=('wxgtk' 'texlive-core' 'texlive-langcyrillic' 'bwidget' 'tkimg' 'vtk')
11 backup=('etc/therion/therion.ini' 'etc/therion/xtherion.ini')
12 source=(http://therion.speleo.sk/downloads/$pkgname-$pkgver.tar.gz
13 "${pkgname}_aur.patch")
15 md5sums=('5fd724a7f39f75fc3e442dbeb5cfbff0'
16 'c59559de8961f4c77bbdc926f8b456d2')
21 # patch the loch Makefile so it looks in the right place for VTK
22 # libs, and patch the config file search path so it looks in
24 patch -Np1 < $srcdir/${pkgname}_aur.patch
26 # extract current version number (e.g. "5.4", "5.6")
27 VTKVERSION=$(ls --color=never -d /usr/include/vtk-*)
28 VTKVERSION=${VTKVERSION#*-}
33 # install rules from makeinstall.tcl
34 install -m755 -D therion ${pkgdir}/usr/bin/therion
35 install -m755 -D xtherion/xtherion ${pkgdir}/usr/bin/xtherion
36 install -m755 -D loch/loch ${pkgdir}/usr/bin/loch
37 install -m644 -D therion.ini ${pkgdir}/etc/therion/therion.ini
38 install -m644 -D xtherion/xtherion.ini ${pkgdir}/etc/therion/xtherion.ini
40 # additional install rules from makebinary.pl
41 install -m644 -D man/therion.1 ${pkgdir}/usr/share/man/man1/therion.1
42 install -m644 -D man/xtherion.1 ${pkgdir}/usr/share/man/man1/xtherion.1
44 mkdir -p ${pkgdir}/usr/share/doc/therion
46 CHANGES COPYING README SVG.problems SYMBOLS.txt \
47 TODO.M TODO.MS TODO.S TODO.SM thbook/thbook.pdf samples \
48 ${pkgdir}/usr/share/doc/therion
51 # vim:set ts=2 sw=2 et: