1 # Contributor: Roberto Nobrega <rwnobrega@gmail.com>
6 pkgdesc="Group Explorer is mathematical visualization software for the abstract algebra classroom"
8 url="http://groupexplorer.sourceforge.net/"
11 makedepends=('subversion')
12 source=(http://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgver}/GroupExplorer${_pkgver}.res.tgz \
13 GroupExplorer.desktop)
14 md5sums=('40b04caa5b68a7a15e1f5467ff2e9d8c'
15 '62af768449029ba072e40bfc21ac9f9b')
17 _svnrepository=http://groupexplorer.svn.sourceforge.net/svnroot/groupexplorer/
22 if [ -d $_svnmod/.svn ]; then
23 (cd $_svnmod && svn up)
25 svn checkout $_svnrepository $_svnmod
27 msg "SVN checkout done or server timeout"
29 msg "Starting make..."
31 cp -R $srcdir/Resources . || return 1
32 qmake -o Makefile GroupExplorer.pro PREFIX=/usr || return 1
37 install -d $pkgdir/usr/share/{applications,pixmaps,$pkgname,$pkgname/Resources} \
38 $pkgdir/usr/bin || return 1
40 cd $srcdir/$_svnmod/trunk
42 install -m755 GroupExplorer $pkgdir/usr/share/$pkgname/ || return 1
43 install -m644 Resources/GroupExplorer.ico $pkgdir/usr/share/pixmaps/ || return 1
44 install -m644 $startdir/GroupExplorer.desktop $pkgdir/usr/share/applications/ || return 1
45 cp -R Resources/* $pkgdir/usr/share/$pkgname/Resources/ || return 1
46 chmod 644 -R $pkgdir/usr/share/$pkgname/Resources/* || return 1
48 ln -s $pkgdir/usr/share/$pkgname/GroupExplorer $pkgdir/usr/bin/GroupExplorer || return 1