Package Details: duckstation-qt-bin 0.1.r7836-1

Git Clone URL: https://aur.archlinux.org/duckstation-qt-bin.git (read-only, click to copy)
Package Base: duckstation-qt-bin
Description: Fast PlayStation 1 emulator for PC and Android
Upstream URL: https://github.com/stenzek/duckstation
Keywords: android-app emulator fast hacktoberfest hardware-renderers jit-compiler libretro opengl playstation psx vulkan
Licenses: cc-by-nc-nd-4.0
Provides: duckstation, duckstation-qt
Submitter: ragouel
Maintainer: gardenappl
Last Packager: gardenappl
Votes: 5
Popularity: 0.40
First Submitted: 2020-11-30 01:43 (UTC)
Last Updated: 2024-11-05 21:43 (UTC)

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

Tortillas-IT commented on 2024-10-11 16:04 (UTC)

the sha256sums is not valid, so the package can't be installed...

simona commented on 2024-09-11 11:32 (UTC)

now ok

simona commented on 2024-08-06 15:58 (UTC)

This doesn't look like a squashfs image.
Failed to open squashfs image
==> ERRORE: Si è verificato un errore in package().

simona commented on 2024-08-06 15:43 (UTC)

==> Validazione di source file con sha256sums...
duckstation-qt-0.1.r7290.AppImage ... NON RIUSCITO
==> ERRORE: Uno o più file non hanno superato il controllo di validità!

italoghost commented on 2024-07-24 01:22 (UTC)

Hi! I've created a patch that is heavily inspired by the approach taken on pcsx2-latest-bin and incorporates some of your code from the update.sh file.

It gets the latest version and therefore eliminates the need to update versions manually.

I wasn't able to pass arguments (like -fullscreen or bigpicture) with the way you symlinked the binary with the AppRun file. By doing the way it was done on pcsx2-latest-bin I had no problems.

Could you (or anyone) review it and consider it as well?

--- /home/ghost/repos/duckstation-qt-bin/PKGBUILD   2024-07-14 21:38:18.000000000 -0300
+++ /home/ghost/repos/duckstation-latest-preview-bin/PKGBUILD   2024-07-23 21:51:16.882269773 -0300
@@ -1,33 +1,53 @@
-# Creator: Dimitris Kiziridis <ragouel at outlook dot com>
-# Maintainer: Artem Vasilev <artem.vasilev@rwth-aachen.de>
-# Maintainer: gardenapple <mailbox@appl.garden>
-
-pkgname=duckstation-qt-bin
-_pkgname="${pkgname%-bin}"
+pkgname=duckstation-latest-preview-bin
+#_url="$(curl -s "$(curl -s "https://api.github.com/repos/stenzek/duckstation/releases" | jq -r '.[] | select(.tag_name == "preview") | .url')" | awk -F'"' '/browser_download_url.*DuckStation.*AppImage/ {print $4}')"
+_pkgname="duckstation-qt"
 _fullname=org.duckstation.DuckStation
-pkgver=0.1.r7139
+pkgver=0.1.7220
 pkgrel=1
 pkgdesc="Fast PlayStation 1 emulator for PC and Android"
 arch=('x86_64')
 url='https://github.com/stenzek/duckstation'
 license=('GPL-3.0-only')
+makedepends=('yq')
 provides=("$_pkgname" 'duckstation')
+conflicts=('duckstation' 'duckstation-git' 'duckstation-qt-bin')
 options=('!strip')
-noextract=("${_pkgname}-${pkgver}.AppImage")
-source=("${_pkgname}-${pkgver}.AppImage::https://github.com/stenzek/duckstation/releases/download/latest/DuckStation-x64.AppImage")
-sha256sums=('ecbae3c668a0a6b01ff972b39e6214ec746b8c68497fa2ab11425af5539b9ff4')
+_appimage="DuckStation-x64.AppImage"
+noextract=("${_appimage}")
+source=("https://github.com/stenzek/duckstation/releases/download/preview/${_appimage}")
+sha256sums=('SKIP')
+
+prepare() {
+   # Extract AppImage
+    cd "${srcdir}"
+    chmod +x "${_appimage}"
+    ./"${_appimage}" --appimage-extract
+
+   # Update script
+   sed -Ei \
+    's@^this_dir=".*\breadlink\b.*\bdirname\b.*"$@this_dir="/opt/duckstation-qt"@' \
+    "$srcdir/squashfs-root/AppRun"
+}
+
+pkgver() {
+   xq -r '.component.releases.release["@version"]' < squashfs-root/usr/share/metainfo/org.duckstation.DuckStation.metainfo.xml | awk -F '[-]' -v OFS='.' '{print $1,$2}'
+}

 package() {
-   chmod 755 "$srcdir/${_pkgname}-${pkgver}.AppImage"
-   "$srcdir/${_pkgname}-${pkgver}.AppImage" --appimage-extract
+   #Icon
    install -Dm644 "squashfs-root/${_fullname}.png" -t "$pkgdir/usr/share/pixmaps"
+   
+   # Desktop file
    install -Dm644 "squashfs-root/${_fullname}.desktop" -t "$pkgdir/usr/share/applications"
+   
+   # Main files
    install -d "$pkgdir/opt"
    cp -avR squashfs-root/ "$pkgdir/opt/$_pkgname"
-   cat <<- EOF > "${_pkgname}.sh"
-       #!/bin/sh
-       cd /opt/$_pkgname && ./AppRun
-   EOF
-   install -Dm755 "${_pkgname}.sh" "$pkgdir/usr/bin/$_pkgname"
+   
+   # Linking the script to the executable
+   install -dm755 "$pkgdir/usr/bin"
+   ln -sf "/opt/$_pkgname/AppRun" "$pkgdir/usr/bin/$_pkgname"
+   
+   # Permissions
    find "$pkgdir/opt/$_pkgname" -type d -exec chmod 755 {} +
 }

Rikj000 commented on 2024-06-22 07:16 (UTC) (edited on 2024-06-22 07:17 (UTC) by Rikj000)

sha256sum for (currently) latest rolling release of DuckStation-x64.AppImage =
8a16f034cc8b11341ed9ad382226549301736794582bdec46a5e19b3ca981e07

@gardenappl since the latest releases of DuckStation are lately rolling releases,
the sha256sum for this AUR package,
will break every time that DuckStation makes a new release:
https://github.com/stenzek/duckstation/releases/tag/latest

Perhaps this could be resolved by switching back to properly tagged DuckStation releases.

clrclr commented on 2024-06-16 22:15 (UTC)

Latest sha256 is 8a16f034cc8b11341ed9ad382226549301736794582bdec46a5e19b3ca981e07 for r6915-1

Awebb commented on 2024-05-10 08:21 (UTC) (edited on 2024-05-10 08:23 (UTC) by Awebb)

==> Making package: duckstation-qt-bin 0.1.r6748-1 (Fri May 10 10:17:27 2024)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
 -> Found duckstation-qt-0.1.r6748.AppImage
==> Validating source files with sha256sums...
   duckstation-qt-0.1.r6748.AppImage ... FAILED
==> ERROR: One or more files did not pass the validity check!

The sha256 of the latest image is 6c6394ff72a16f6d104b143f2e1c514fcd427657d64e7ae1642c5b6106534f60.

The version is -r6759.

LordDemecrius83 commented on 2023-12-14 07:22 (UTC)

Due to me being busy lately, I won't be able to maintain packages anymore, and such I will be orphaning every package I maintain

Anyone is welcome to take over

patataofcourse commented on 2023-10-24 18:44 (UTC) (edited on 2023-10-24 18:44 (UTC) by patataofcourse)

Structure of AppImage has changed, and now the .png icon is named org.duckstation.Duckstation.png, so this now fails to package.

Also, having this always refer to the latest version of the AppImage is not a good idea, since it means reinstalling (and rebuilding!) the entire package.