# Contributor: Anton Bazhenov # Maintainer: Tom v/d Brink # Maintainer: Stefan Husmann # Maintainer: ximeg # Maintainer: desperat # Maintainer: Mihai Coman # Credits to: Jake <> for solving the server download definitions # http://smath.info pkgname=smath pkgver=1_00_8348 pkgrel=1 pkgdesc="A mathematical program with many features and paper-like interface, similar to Mathcad" _pkgcode=Lw2xA arch=('i686' 'x86_64') url="http://smath.info" license=('CCPL') groups=('math') depends=('mono') install=smath.install backup=(opt/$pkgname/settings.inf) source=("https://smath.com/file/${_pkgcode}/SMathStudioDesktop.${pkgver}.Mono.tar.gz") md5sums=('4ae9109f910c0085eeb8c193f3ad1c10') DLAGENTS=("https::/usr/bin/wget --post-data RefMem=&PostBack=${_pkgcode} %u") package() { cd "$srcdir" # install program install -m755 -d "$pkgdir"/opt/$pkgname/{book,examples,lang,entries,plugins,snippets} install -m644 -t "$pkgdir"/opt/$pkgname/book book/* install -m644 -t "$pkgdir"/opt/$pkgname/examples examples/* install -m644 -t "$pkgdir"/opt/$pkgname/lang lang/* install -m644 -t "$pkgdir"/opt/$pkgname *.{dll,exe} install -m644 -t "$pkgdir"/opt/$pkgname/entries entries/* install -m644 -t "$pkgdir"/opt/$pkgname/plugins plugins/* install -m644 -t "$pkgdir"/opt/$pkgname/snippets snippets/* # create settings file touch "$pkgdir"/opt/$pkgname/settings.inf chmod 664 "$pkgdir"/opt/$pkgname/settings.inf echo "#!/bin/sh cd /opt/smath mono SMathStudio_Desktop.exe \"$@\" " > ../$pkgname.sh # install launcher install -Dm755 ../$pkgname.sh "$pkgdir"/usr/bin/$pkgname install -Dm644 "${startdir}/smath.desktop" "${pkgdir}/usr/share/applications/smath.desktop" install -Dm644 "${startdir}/SMathStudioLogo256.png" "${pkgdir}/usr/share/pixmaps/smath.png" }