summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 27b3caca81a5978160523abbb1014d6e08da89e2 (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
# Maintainer: Thibaud Mouton < thibaud dot mouton at gmail dot com>

pkgname=mathmod-cvs
pkgver=r202
pkgrel=1
pkgdesc="Mathematical modeling software"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/mathmod/"
license=('GPL')
depends=('qt5-base' 'mesa')
makedepends=('svn')

provides=('mathmod-cvs')

# svn checkout svn://svn.code.sf.net/p/mathmod/branches/ mathmod

source=("$pkgname"::'svn+http://svn.code.sf.net/p/mathmod/branches/trunk/#revision=202' MathMod.pro.diff)
md5sums=('SKIP'
         '7f398f5e2cea4b4bc65ec9f978780b21')

pkgver() {
  cd "$srcdir/$pkgname"
  printf "r%s" "$(svnversion | tr -d 'A-z')"
}

build() {
  cd "$srcdir/$pkgname"
  patch < $srcdir/MathMod.pro.diff || return 1 
  # hack for myressources.qrc complaining
  touch "path.txt"
  qmake
  make
}

package() {
  cd "$srcdir/$pkgname"
  
  # install script is not working correctly so we install by ourself
  # Install executable
  install -D -m755 "MathMod" "${pkgdir}/usr/bin/${pkgname}"
  strip "$pkgdir/usr/bin/${pkgname}"  

  # Install shortcut and icon
  install -D -m644 "icon/catenoid_mini_64x64.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png" 
}