Package Details: smath 1_00_8238-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
Submitter: tomracing
Maintainer: tomracing
Last Packager: tomracing
Votes: 9
Popularity: 0.167335
First Submitted: 2016-01-10 10:32 (UTC)
Last Updated: 2022-07-27 15:30 (UTC)

Latest Comments

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.

tomracing commented on 2018-05-22 20:23 (UTC)

well done! glad it works for you now.

xxx commented on 2018-05-22 01:03 (UTC) (edited on 2018-05-22 02:00 (UTC) by xxx)

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.

tomracing commented on 2018-05-21 19:50 (UTC)

xxx, sorry i cannot reproduce your error. I've had no issue with installing smath on a clean manjaro vm. only installed based-devel yaourt then yaourt -S smath got no errors there. therefore pretty sure it is not the package.

xxx commented on 2018-05-20 19:47 (UTC)

Thanks tomracing for looking into it. I tried to install smath trough yaourt on 3 different computers with the same error, '../smath.desktop': No such file or directory. I got it to install by first cloning the official URL and overwriting the files there with the files so kindly provided by Jack here https://github.com/Jakeler/AUR-PKGBUILDS/tree/master/smath The official package does not work. I am using Manjaro, I do not think that will make any difference though.

tomracing commented on 2018-05-18 20:42 (UTC)

Sorry to hear that it is not working for you XXX. however I've just tried building it using several popular aur helpers and all worked fine. If you build by downloading the pkgbuild file directly, then please note that in the root are several other files that will be needed to install. https://aur.archlinux.org/cgit/aur.git/tree/?h=smath

If after thay it still doesn't work let me know.

xxx commented on 2018-05-18 17:43 (UTC)

Any bad package should be moved out, in a sandbox or something. For quite a while now I am not able to install this one.

install: cannot stat '../smath.desktop': No such file or directory ==> ERROR: A failure occurred in package(). Aborting... ==> ERROR: Makepkg was unable to build smath.

tomracing commented on 2017-02-22 17:50 (UTC)

great, it worked for me also this morning. Thanks for testing. the pkgbuild is cleaned up now and as far as I can tell the files don't even need mentioning in the source. Should be good to go for the future and much easier to update. thanks again for the solution.

Jake commented on 2017-02-22 12:15 (UTC)

Now uncomment the sources (make sure the braces are correct) and it is complete ;) You can try my version from yesterday here: https://github.com/Jakeler/AUR-PKGBUILDS/tree/master/smath

Jake commented on 2017-02-21 23:20 (UTC)

It works for me with the the .desktop, i can send you a PKGBUILD if you want. Downloading the icon pack is a bit of a problem, because this needs a different id... but i think dropbox (or adding it directly to the sources / aur repo) is fine for a simple png. btw: i would supply the start script also as file, instead of this multiple line echo pipe trick.

tomracing commented on 2017-02-21 22:53 (UTC)

Jake, Cool! That works and I can get the main file downloaded directly from the web now. Just have to pop into a Arch irc channel one of these days to see if i can get some help to complete the PKGBUILD. I think the %u in the dlagents follows all three sources and those don't need the http post procedure yet. Will have to find a way to fix that or change the way to get the .desktop and the icon. So for now won't post that pkgbuild yet as it is broken. pkg still works as it is now. looking forward to complete this though.

Jake commented on 2017-02-21 21:11 (UTC)

The server expects a HTTP POST request with the id to start the download, so: wget --post-data "RefMem=&PostBack=CrFXM" http://smath.info/file/CrFXM/SMathStudioDesktop.0_98_5935.Mono.tar.gz This works also through makepkg with the DLAGENTS variable: DLAGENTS=('http::/usr/bin/wget --post-data RefMem=&PostBack=CrFXM %u')

tomracing commented on 2016-09-30 21:15 (UTC)

Burjui, because the main website obscures the download file location http://smath.info/file/CrFXM/SMathStudioDesktop.0_98_5935.Mono.tar.gz This takes you to a java link to download. If you have a suggestion more than welcome to provide input so we can improve this build.

burjui commented on 2016-09-26 01:16 (UTC)

Why downloading from Dropbox instead of the official site?

tomracing commented on 2016-05-27 18:31 (UTC)

pkg version 2 now has the giflib restriction removed.

silent commented on 2016-05-27 18:23 (UTC)

Please remove <5.1.2 condition for giflib from the PKGBUILD

archmkr commented on 2016-05-25 13:47 (UTC)

Great, I just did the same and its all working.

tomracing commented on 2016-05-24 20:46 (UTC)

giflib 5.1.4-1 just came out. After doing a normal -Syu and checking things work as normal I updated giflib with another -Syud (the -d stops the dependency check) For me Smath works with 5.1.4. If others would like to confirm I will remove the giflib requirement end of the week.

tomracing commented on 2016-04-30 14:49 (UTC)

I've updated to the latest stable 98.5935 Also added the dependency giflib<5.1.2 hope that works for people to keep it at 5.1.1

archmkr commented on 2016-04-28 21:54 (UTC) (edited on 2016-04-28 21:55 (UTC) by archmkr)

Great! I can confirm that downgrading to giflib-5.1.1-1 it works, thanks! Maybe you could add a constrain about that in this pckg itself?

tomracing commented on 2016-04-28 21:40 (UTC)

Well I had some time to find out what caused the breakage and I found it! downgrade giflib to giflib-5.1.1-1 the current version is 5.1.2-1 which breaks smath. I will start a forum thread to get help on where and how to report the bug. For now roll back and ignorepkg = giflib if you want smath to work.

archmkr commented on 2016-04-25 11:02 (UTC)

Ok, thanks for reply. Now I have tried to run with the oldest available (libgdiplus-3.8-1) and get the same error. Reading some other topics related to "GDI+ status: InvalidParameter" I found some suggestions that what could be wrong is some image parameter. If it is the case, I can remember to read about some user who fixed something like this by manually converting images of some software using imagemagick.

tomracing commented on 2016-04-25 06:30 (UTC)

Thanks for helping to try to fix this. The developer of smath has not responded on his forum yet unfortunately. Dependencies of mono are listed as: [code]Dependencies (5) ca-certificates libgdiplus>=3.8 python sh (bash) zlib[/code] with the error line [code]System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter] [/code] we may have to look into libgdiplus.

archmkr commented on 2016-04-24 16:45 (UTC) (edited on 2016-04-24 16:47 (UTC) by archmkr)

Same issue here (geli0n and tomracing). The only dependency listed here is Mono.. So I have tried to run some newer (0.98) and some older (0.92 ~ 0.97) versions downgrading Mono: mono-4.0.1.1-2-x86_64 (newest)-> same error mono-4.0.1.1-1-x86_64 -> same error mono-3.0.12-1-x86_64 (oldest from ALA/ARM) -> same plus other errors Now I can imagine that it isn't caused by mono.

tomracing commented on 2016-04-05 18:57 (UTC)

I have exactly the same issue as you have geli0n and would like to have it fixed. So far I have been trying rolling back various packages to find out what the source of the problem is. I have not found a solution yet but would be happy with any ideas. The only thing I do know is that the runtime version message is not the root cause as a ubuntu machine gives the same warning and still runs perfectly.

geli0n commented on 2016-04-05 17:01 (UTC)

program failed with exception: WARNING: The runtime version supported by this application is unavailable. Using default runtime: v4.0.30319 libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: cHRM chunk does not match sRGB libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: cHRM chunk does not match sRGB libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: cHRM chunk does not match sRGB - [AppDir] HTML Export (1.13.5890.6147) - [AppDir] Export to image (1.9.5890.6148) - [AppDir] Picture Region (1.10.5890.6147) - [AppDir] Plot Region (1.9.5890.6149) - [AppDir] SMath Studio Files Plugin (1.9.5890.6149) - [AppDir] Special Functions (1.11.5890.6146) - [AppDir] Text Region (1.10.5890.6148) - [AppDir] SMath Viewer Files Plugin (1.1.5890.6150) - [AppDir] XMCD Files Plugin (1.12.5890.6148) libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: cHRM chunk does not match sRGB System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter] at System.Drawing.GDIPlus.CheckStatus (Status status) <0x40795be0 + 0x00147> in <filename unknown>:0 at System.Drawing.Image.get_Width () <0x407bb380 + 0x0002b> in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.Drawing.Image:get_Width () at .. (System.Windows.Forms.PaintEventArgs ) <0x40a10f80 + 0x0020b> in <filename unknown>:0 at .. (System.Windows.Forms.PaintEventArgs ) <0x40a0f700 + 0x00bdf> in <filename unknown>:0 at .. (System.Windows.Forms.PaintEventArgs ) <0x40a0f240 + 0x0037f> in <filename unknown>:0 at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m) <0x409e2f10 + 0x00157> in <filename unknown>:0 at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) <0x407ac930 + 0x001f7> in <filename unknown>:0 at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) <0x407ac900 + 0x00024> in <filename unknown>:0 at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) <0x407ac8c0 + 0x00036> in <filename unknown>:0 at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) <0x407ab000 + 0x003b4> in <filename unknown>:0