Package Details: ripes-appimage 2.2.6-6

Git Clone URL: https://aur.archlinux.org/ripes-appimage.git (read-only, click to copy)
Package Base: ripes-appimage
Description: A graphical processor simulator and assembly editor for the RISC-V ISA
Upstream URL: https://github.com/mortbopet/Ripes
Keywords: editor isa risc-v simulator
Licenses: MIT
Conflicts: ripes
Provides: ripes
Submitter: zxp19821005
Maintainer: zxp19821005
Last Packager: zxp19821005
Votes: 1
Popularity: 0.25
First Submitted: 2023-04-04 05:35 (UTC)
Last Updated: 2023-09-21 01:18 (UTC)

Latest Comments

eeeXun commented on 2023-09-20 14:25 (UTC) (edited on 2023-09-20 14:30 (UTC) by eeeXun)

Oops! My bad. We need libfuse.so.2 to run. This can be found in fuse2

diff --git a/PKGBUILD b/PKGBUILD
index fa7cb49..43fb370 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,17 +2,16 @@
 pkgname=ripes-appimage
 _pkgname=Ripes
 pkgver=2.2.6
-pkgrel=5
+pkgrel=6
 pkgdesc="A graphical processor simulator and assembly editor for the RISC-V ISA"
 arch=("x86_64")
 url="https://github.com/mortbopet/Ripes"
 license=("MIT")
 provides=("${pkgname%-appimage}=${pkgver}")
 conflicts=("${pkgname%-appimage}")
-depends=('hicolor-icon-theme' 'zlib' 'glibc')
-makedepends=('squashfuse')
+depends=('hicolor-icon-theme' 'zlib' 'glibc' 'fuse2')
 options=('!strip')
-_install_path="/opt/appimages"
+_install_path="/opt/$_pkgname"
 source=("${pkgname%-appimage}-${pkgver}.AppImage::${url}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}-linux-${CARCH}.AppImage"
     "LICENSE::https://raw.githubusercontent.com/mortbopet/Ripes/v${pkgver}/LICENSE")
 sha256sums=('065cc364897f2181dd0c4d32decb6d7e38309ae12ed1319a52e6648223cd55db'
@@ -20,7 +19,7 @@ sha256sums=('065cc364897f2181dd0c4d32decb6d7e38309ae12ed1319a52e6648223cd55db'
 prepare() {
     chmod a+x "${srcdir}/${pkgname%-appimage}-${pkgver}.AppImage"
     "${srcdir}/${pkgname%-appimage}-${pkgver}.AppImage" --appimage-extract > /dev/null
-    sed "s|Exec=${_pkgname}|Exec=${pkgname%-appimage} --no-sandbox %U|g;s|Icon=${_pkgname}|Icon=${pkgname%-appimage}|g" \
+    sed "s|Exec=${_pkgname}|Exec=${pkgname%-appimage}|g" \
         -i "${srcdir}/squashfs-root/${_pkgname}.desktop"
 }
 package() {
@@ -28,9 +27,6 @@ package() {
     install -Dm755 -d "${pkgdir}/usr/bin"
     ln -sf "${_install_path}/${pkgname%-appimage}.AppImage" "${pkgdir}/usr/bin/${pkgname%-appimage}"
     install -Dm644 "${srcdir}/squashfs-root/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-appimage}.desktop"
-    for _icons in 16x16 22x22 24x24 32x32 48x48 64x64 128x128 256x256 512x512; do
-    install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/${_icons}/apps/${_pkgname}.png" \
-        "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-appimage}.png"
-    done
+    cp -dr --no-preserve=ownership "${srcdir}/squashfs-root/usr/share/icons" "$pkgdir/usr/share"
     install -Dm644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}
\ No newline at end of file
+}

eeeXun commented on 2023-09-20 08:14 (UTC) (edited on 2023-09-20 08:15 (UTC) by eeeXun)

Hi, I have a patch for that.

diff --git a/PKGBUILD b/PKGBUILD
index fa7cb49..5f98fad 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
 pkgname=ripes-appimage
 _pkgname=Ripes
 pkgver=2.2.6
-pkgrel=5
+pkgrel=6
 pkgdesc="A graphical processor simulator and assembly editor for the RISC-V ISA"
 arch=("x86_64")
 url="https://github.com/mortbopet/Ripes"
@@ -10,9 +10,8 @@ license=("MIT")
 provides=("${pkgname%-appimage}=${pkgver}")
 conflicts=("${pkgname%-appimage}")
 depends=('hicolor-icon-theme' 'zlib' 'glibc')
-makedepends=('squashfuse')
 options=('!strip')
-_install_path="/opt/appimages"
+_install_path="/opt/$_pkgname"
 source=("${pkgname%-appimage}-${pkgver}.AppImage::${url}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}-linux-${CARCH}.AppImage"
     "LICENSE::https://raw.githubusercontent.com/mortbopet/Ripes/v${pkgver}/LICENSE")
 sha256sums=('065cc364897f2181dd0c4d32decb6d7e38309ae12ed1319a52e6648223cd55db'
@@ -20,7 +19,7 @@ sha256sums=('065cc364897f2181dd0c4d32decb6d7e38309ae12ed1319a52e6648223cd55db'
 prepare() {
     chmod a+x "${srcdir}/${pkgname%-appimage}-${pkgver}.AppImage"
     "${srcdir}/${pkgname%-appimage}-${pkgver}.AppImage" --appimage-extract > /dev/null
-    sed "s|Exec=${_pkgname}|Exec=${pkgname%-appimage} --no-sandbox %U|g;s|Icon=${_pkgname}|Icon=${pkgname%-appimage}|g" \
+    sed "s|Exec=${_pkgname}|Exec=${pkgname%-appimage}|g" \
         -i "${srcdir}/squashfs-root/${_pkgname}.desktop"
 }
 package() {
@@ -28,9 +27,6 @@ package() {
     install -Dm755 -d "${pkgdir}/usr/bin"
     ln -sf "${_install_path}/${pkgname%-appimage}.AppImage" "${pkgdir}/usr/bin/${pkgname%-appimage}"
     install -Dm644 "${srcdir}/squashfs-root/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-appimage}.desktop"
-    for _icons in 16x16 22x22 24x24 32x32 48x48 64x64 128x128 256x256 512x512; do
-    install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/${_icons}/apps/${_pkgname}.png" \
-        "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-appimage}.png"
-    done
+    cp -dr --no-preserve=ownership "${srcdir}/squashfs-root/usr/share/icons" "$pkgdir/usr/share"
     install -Dm644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}
\ No newline at end of file
+}

It seems that we don't need --no-sandbox %U option for running. This should fix the bug that I encountered. And the dependency squashfuse is not needed.

Also, I change _install_path from /opt/appimages to /opt/Ripes. I think this is more distinguishable. And we can just copy the icons to /usr/share/icons/hicolor. No need to change the name.

eeeXun commented on 2023-09-19 09:44 (UTC)

Still have error

ERROR: Unknown option 'no-sandbox'.

zxp19821005 commented on 2023-09-19 07:12 (UTC)

@eeeXun Thanks for you feedback, I've add squashfuse as makedepends.

eeeXun commented on 2023-09-19 06:36 (UTC)

When launch the app, I get this error

dlopen(): error loading libfuse.so.2

AppImages require FUSE to run. 
You might still be able to extract the contents of this AppImage 
if you run it with the --appimage-extract option. 
See https://github.com/AppImage/AppImageKit/wiki/FUSE 
for more information