1 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
2 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
3 # Maintainer: ximeg <ximeg@tomcity.net>
4 # Maintainer: desperat <c2h5ohzh2@o2.pl>
5 # Maintainer: Mihai Coman <mihai@m1x.ro>
10 pkgdesc="A mathematical program with many features and paper-like interface, similar to Mathcad"
11 arch=('i686' 'x86_64')
12 url="http://smath.info"
17 backup=(opt/$pkgname/settings.inf)
18 source=("http://dl.dropbox.com/u/2776506/SMathStudioDesktop.0_89.Mono.tar.gz" "smath.desktop" "http://upload.wikimedia.org/wikipedia/ru/f/fc/SMathStudioLogo256.png")
19 md5sums=('660c064598b5ef74878cf15452095ea9' 'af70c1bfb5bcdaab7f952339ebb2435e' 'ed3720462decbcfa63df5c9d04fb03f9') #generate with 'makepkg -g'
22 cd "$srcdir"/SMathStudioDesktop.${pkgver/\./_}.Mono
24 install -m755 -d "$pkgdir"/opt/$pkgname/{book,examples,lang}
25 install -m644 -t "$pkgdir"/opt/$pkgname/book book/*
26 install -m644 -t "$pkgdir"/opt/$pkgname/examples examples/*
27 install -m644 -t "$pkgdir"/opt/$pkgname/lang lang/*
28 install -m644 -t "$pkgdir"/opt/$pkgname *.{dll,pc,exe}
30 # create settings file
31 touch "$pkgdir"/opt/$pkgname/settings.inf
32 chmod 664 "$pkgdir"/opt/$pkgname/settings.inf
36 mono SMathStudio_Desktop.exe \"$@\"
40 install -Dm755 ../$pkgname.sh "$pkgdir"/usr/bin/$pkgname
41 install -Dm644 "${srcdir}/smath.desktop" "${pkgdir}/usr/share/applications/smath.desktop"
42 install -Dm644 "${srcdir}/SMathStudioLogo256.png" "${pkgdir}/usr/share/pixmaps/smath.png"