updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / smath / PKGBUILD
blob3a90acfe2a011c7653b1da6a5b1b314f61813e92
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>
7 pkgname=smath
8 pkgver=0_89
9 pkgrel=1
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"
13 license=('CCPL')
14 groups=('math')
15 depends=('mono')
16 install=smath.install
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'
21 build() {
22   cd "$srcdir"/SMathStudioDesktop.${pkgver/\./_}.Mono
23   # install program
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
34 echo "#!/bin/sh
35 cd /opt/smath
36 mono SMathStudio_Desktop.exe \"$@\"
37 " > ../$pkgname.sh
39   # install launcher
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"