Package Details: smath 1_3_9126-3

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.com
Keywords: mathcad mathematics smath
Licenses: CCPL
Groups: math
Submitter: tomracing
Maintainer: tomracing
Last Packager: tomracing
Votes: 11
Popularity: 0.000000
First Submitted: 2016-01-10 10:32 (UTC)
Last Updated: 2025-01-20 19:40 (UTC)

Latest Comments

1 2 3 4 Next › Last »

andean_archer commented on 2025-10-15 21:47 (UTC)

In my case, the application doesn't start at all when I launch it from dmenu or rofi.

tomracing commented on 2025-10-15 21:26 (UTC) (edited on 2025-10-15 21:26 (UTC) by tomracing)

@andean_archer, I have the same when starting in the terminal. The application still works fine though. As for the error this isn't to do with packaging but probably smath upstream itself.

andean_archer commented on 2025-10-15 08:24 (UTC) (edited on 2025-10-15 08:28 (UTC) by andean_archer)

Hi. I got:

WARNING: The runtime version supported by this application is unavailable. Using default runtime: v4.0.30319 . . . ================================================================= Native Crash Reporting ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. . . .

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.