updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / geomspace / PKGBUILD
bloba0e2285f297c603601c742a50fe9880d260d9c62
1 # Maintainer:  Michael Kogan <michael dot kogan at gmx dot net>
3 pkgname=geomspace
4 pkgver=0.9b
5 pkgrel=1
6 pkgdesc="A browser for geometric (i.e. Euclidean, Riemann, Minkowski) spaces"
7 arch=('i686' 'x86_64')
8 url="https://sourceforge.net/projects/geomspace/"
9 license=('GPL')
10 depends=('glui')
11 source=(http://downloads.sourceforge.net/project/$pkgname/0.9/GeomSpace-$pkgver-src.tar.gz \
12         http://downloads.sourceforge.net/project/$pkgname/Theory/UniformGeomSpace-2010.11.02-en.pdf \
13         http://sourceforge.net/projects/geomspace/files/Models/5Cubes.gmsp
14         http://sourceforge.net/projects/geomspace/files/Models/5Tetra.gmsp
15         make.patch \
16         geomspace.png \
17         geomspace.desktop)
18 md5sums=('a1c695977b12c14165f83e728ba0629d'
19                         '14560f6f2cba975be1ba8d047b5acec5'
20                         '205c728191134d15cd5053e37c30a454'
21                         '520350c4ab6aa1385f75028d22e769be'
22                         '899865b93ed52799f31dd3b2ff8b7f84'
23                         '86af94ebce3f2d5a40e3a01fb1e1b0bc'
24                         '0987c858a20d66760bb2627d9517eb8d')
25 sha1sums=('1cc5dc3282022c61537ce3ce8c4557ed839611ee'
26                         'd224bb95140684449b7ce7ec81fc54dff1e02717'
27                         'c046032724f667a9d11c41856db351d3ef338713'
28                         '6a25b29dd104a8326722ae7261c9f4afb14f5944'
29                         '38ec7e6a2da646981b31e1118863ef766e8512a9'
30                         '7a85229fe2b49a2ea7f745f9b078bf7364cac115'
31                         '9ea1201969d3fea1a17d5addad1aa724dd189112')
33 build() {
34     cp /usr/lib/libglui.a $srcdir/GeomSpace/extern/lib/
35     if [ -f /usr/include/glui.h ]; then
36         cp /usr/include/glui.h $srcdir/GeomSpace/extern/include/GL/
37     fi
38     cd $srcdir/GeomSpace/make
39     patch Makefile < $srcdir/make.patch
40          if test "$CARCH" == i686; then
41                 echo "OS = linux32" > platform 
42          fi
43     make || return 1
45 package() {
46     install -D -m755 $srcdir/GeomSpace/bin/GeomSpace $pkgdir/usr/bin/geomspace
47     install -D -m644 $srcdir/GeomSpace/DeveloperManual.pdf $pkgdir/usr/share/doc/$pkgname/DeveloperManual.pdf
48     install -D -m644 $srcdir/GeomSpace/UserManual.pdf $pkgdir/usr/share/doc/$pkgname/UserManual.pdf
49     install -D -m644 $srcdir/UniformGeomSpace-2010.11.02-en.pdf $pkgdir/usr/share/doc/$pkgname/UniformGeomSpace-2010.11.02-en.pdf
50          install -D -m644 ../${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
51          install -D -m644 ../${pkgname}.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png
52          install -d -m755 ${pkgdir}/usr/share/${pkgname}
53          install -d -m755 ${pkgdir}/usr/share/${pkgname}/models
54          install -D -m644 ../5Cubes.gmsp ${pkgdir}/usr/share/${pkgname}/models
55          install -D -m644 ../5Tetra.gmsp ${pkgdir}/usr/share/${pkgname}/models   
56     msg "\033[31;1m The user manual and a document containing a theory explanation have been installed to /usr/share/doc/$pkgname. It is strongly recommended to read them in order to use Geomspace! \033[0m"
57          msg "\033[31;1m Some models of geometrical objects have been installed to /usr/share/$pkgname/models. Additional models can be found at http://sourceforge.net/projects/geomspace/files/Models/ \033[0m"