Package Details: smath 1_2_9018-1

Git Clone URL: https://aur.archlinux.org/smath.git (read-only, click to copy)
Package Base: smath
Description: A mathematical program with many features and paper-like interface, similar to Mathcad
Upstream URL: http://smath.info
Keywords: mathcad mathematics smath
Licenses: CCPL
Groups: math
Submitter: tomracing
Maintainer: tomracing
Last Packager: tomracing
Votes: 11
Popularity: 0.000022
First Submitted: 2016-01-10 10:32 (UTC)
Last Updated: 2024-10-01 21:52 (UTC)

Latest Comments

1 2 3 4 Next › Last »

dbarbosa0 commented on 2022-05-17 00:47 (UTC) (edited on 2022-08-03 19:00 (UTC) by dbarbosa0)

Dear @tomracing, thanks for the feedback.

I checked and found the solution to this problem.

In smath.desktop:

  Exec=mono /opt/smath/SMathStudio_Desktop.exe  %U
  Path=/opt/smath/

In /usr/share/mime/packages/smath-sm.xml :

 <?xml version="1.0" encoding="UTF-8"?>
   <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
     <mime-type type="application/smath">
     <comment>SMath Desktop File</comment>
     <glob pattern="*.sm"/>
   </mime-type>
 </mime-info>

After adding xml file, run the mime update:

 sudo update-mime-database /usr/share/mime
 sudo xdg-mime default smath.desktop application/smath

In file "/usr/sbin/smath", to open the ".sm" file directly from terminal:

xdg-open "$1"

I hope that helps.

tomracing commented on 2022-05-13 20:41 (UTC)

Updated the package to version 1_00_8151 and included the modification of @hifigraz as this worked with no issue.

I would really like to include the changes @dbarbosa0 suggested as those features would be great however the suggested change to smath.desktop broke basic startup functionality in current version. Can you review what would be needed in current package?

dbarbosa0 commented on 2022-04-20 13:22 (UTC) (edited on 2022-04-20 13:22 (UTC) by dbarbosa0)

Thanks @tomracing for this work.

I would like to suggest two changes.

First, replace "Exec=smath" with "Exec=mono /opt/smath/SMathStudio_Desktop.exe %U" in "smath.desktop" to open the ".sm" file directly from the file manager.

Second, in file "/usr/sbin/smath", I suggest:

" !/bin/sh

mono /opt/smath/SMathStudio_Desktop.exe $1 "

to open the ".sm" file directly from terminal.

hifigraz commented on 2021-10-18 14:45 (UTC) (edited on 2021-10-18 14:45 (UTC) by hifigraz)

Solution for failing build replace the following two lines in PKGBUILD with

install -Dm644 "../smath.desktop" "${pkgdir}/usr/share/applications/smath.desktop"

install -Dm644 "../SMathStudioLogo256.png" "${pkgdir}/usr/share/pixmaps/smath.png"

WITH:

install -Dm644 "${startdir}/smath.desktop" "${pkgdir}/usr/share/applications/smath.desktop"

install -Dm644 "${startdir}/SMathStudioLogo256.png" "${pkgdir}/usr/share/pixmaps/smath.png"

jclds139 commented on 2021-04-05 18:42 (UTC)

Thanks tomracing, I've got it now. You made me look to my .makepkg.conf file and I have there a line [# BUILDDIR=/tmp/makepkg]. I had to comment out this line and now I can get smath installed trough yaourt. I do not really understand why smath does not work with my BUILDDIR in tmp but other yaourt stuff works.

I can explain this one. The PKGBUILD is missing the sources that are committed into the AUR repo. Those need to be included in source=() so they'll be copied into $BUILDDIR.

If that alone doesn't solve it, then changing the referenced install paths to start from ${srcdir} should fix it once an for all.

tomracing commented on 2020-03-27 09:26 (UTC)

@zxcv It is now corrected in pkg version 2. worked on 2 of my systems so let me know if there are any further issues.

zxcv commented on 2020-03-26 23:43 (UTC)

Download is saved to SMathStudioDesktop.0_99_7030.Mono.tar.gz and PKGBUILD looks for SMathStudioDesktop.0_99_7030.mono.tar.gz so it errors.

tomracing commented on 2018-09-13 08:57 (UTC)

Sorry this is not a packaging issue please try to find the solution at the forum under the smath.info website.

Andrea993 commented on 2018-09-13 08:50 (UTC)

It doesn't show me greek characters in right side buttons, it show some rectangles. In worksheet greek characters works.