summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4b78be5835b4095acd5dd8995ab37ebfecdd3195 (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
84
85
# Maintainer: Billy Rond <billy dot rond at gmail dot com>
# Maintainer: Previously Michal Kowalski <kowalski TOD michal TA gmail TOD com>

pkgname=gaviewer
_rpkgname=GAViewer
pkgver=0.86
pkgrel=5
epoch=
pkgdesc="Geometric Algebra scriptable 3D visualization tool"
arch=('x86_64')
url="http://www.geometricalgebra.net/downloads.html"
license=('GPL2')
groups=('math')
depends=('fltk' 'libgl' 'mesa' 'libx11' 'libpng' 'gcc-libs')
makedepends=('antlr2' 'zlib')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(http://www.geometricalgebra.net/downloads/${_rpkgname}-$pkgver.tar.gz
        http://www.geometricalgebra.net/downloads/figures.zip
        http://www.geometricalgebra.net/downloads/gaviewer.pdf
        http://www.geometricalgebra.net/downloads/gaviewerexercises.pdf
        http://www.geometricalgebra.net/images/tour_fig_3_3.png)
noextract=()
md5sums=('ce5285dfa74db56a4ba7577a1a5e6738'
         '172fc88d38e3b29960e33788a1a4f045'
         '43fd8ca7da3e0cac3fee2350d05c9d3e'
         '60543f7f310292e9c70e9d98dd095c9e'
         '5f11e0c234f4223314ed85aca7233cdc')

build() {
  cd "$srcdir/${_rpkgname}-$pkgver"
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/${_rpkgname}-$pkgver"
  make DESTDIR="$pkgdir/" install
  mkdir -p "$pkgdir/usr/share/doc/$pkgname"
  cp $srcdir/gaviewer.pdf $srcdir/gaviewerexercises.pdf \
    "$pkgdir/usr/share/doc/$pkgname/"
  chmod -x $srcdir/Figures/*
  cp -r $srcdir/Figures "$pkgdir/usr/share/doc/$pkgname/Figures"
  mkdir -p "$pkgdir/usr/share/pixmaps/$pkgname"
  cp $srcdir/tour_fig_3_3.png "$pkgdir/usr/share/pixmaps/$pkgname/"
  mkdir -p "$pkgdir/usr/share/applications/"
  echo "[Desktop Entry]

  # The type as listed above
  Type=Application
  
  # The version of the desktop entry specification to which this file complies
  Version=0.86
  
  # The name of the application
  Name=gaviewer
  
  # A comment which can/will be used as a tooltip
  Comment=Geometric algebra viewer and experimenter
  
  # The path to the folder in which the executable is run
  Path=/usr/bin/gaviewer
  
  # The executable of the application, possibly with arguments.
  Exec=gaviewer
  
  # The name of the icon that will be used to display this entry
  Icon=/usr/share/pixmaps/gaviewer/tour_fig_3_3.png
  
  # Describes whether this application needs to be run in a terminal or not
  Terminal=false
  
  # Describes the categories in which this entry should be shown
  Categories=Education;Math;
  StartupNotify=false" > "$pkgdir/usr/share/applications/${pkgname}.desktop"
  }
  
  # vim:set ts=2 sw=2 et: