updated on Tue Jan 17 16:10:12 UTC 2012
[aur-mirror.git] / therion / PKGBUILD
blob82894fbec897074392d4cfc3421ecd9d12a79849
1 # Maintainer: Beej Jorgensen <beej@beej.us>
2 pkgname=therion
3 pkgver=5.3
4 pkgrel=5
5 pkgdesc="Cave map rendering software"
6 arch=('i686' 'x86_64')
7 url="http://therion.speleo.sk/"
8 license=('GPL')
9 depends=('wxgtk' 'texlive-core' 'texlive-langcyrillic' 'bwidget' 'tkimg' 'vtk')
10 makedepends=()
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")
14     
15 md5sums=('5fd724a7f39f75fc3e442dbeb5cfbff0'
16          'c59559de8961f4c77bbdc926f8b456d2')
18 build() {
19   cd "$srcdir/$pkgname"
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
23   # /etc/therion/:
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#*-}
29   export VTKVERSION
31   make
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
45   cp -a \
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: