Package Details: mesen-s-git 0.4.0.r14.g6d9dc99-1

Git Clone URL: https://aur.archlinux.org/mesen-s-git.git (read-only, click to copy)
Package Base: mesen-s-git
Description: A cross-platform Super Nintendo emulator
Upstream URL: https://github.com/SourMesen/Mesen-S
Licenses: GPL3
Conflicts: mesen-s
Submitter: CrankySupertoon
Maintainer: CrankySupertoon
Last Packager: CrankySupertoon
Votes: 0
Popularity: 0.000000
First Submitted: 2020-04-12 02:40
Last Updated: 2020-05-23 02:46

Latest Comments

ISSOtm commented on 2020-07-03 10:55

Hello,

I installed the package yesterday, and tried updating it today. It fails when it comes to generating the .desktop file:

==> Starting prepare()...
[Mesen-S]                         Generating desktop file... no
Mesen-S.desktop already exists. Use -f as the first argument to gendesk to overwrite.
==> ERROR: A failure occurred in prepare().
    Aborting...

The following fixes such incremental builds:

diff --git a/PKGBUILD b/PKGBUILD
index 7ba484f..5939fc2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -29,7 +29,7 @@ prepare() {
        # Prevent duplicate .desktop from getting created
        sed -i 's/CreateShortcutFile(desktopFile, mimeTypes);//' UI/Config/FileAssociationHelper.cs

-       gendesk --pkgname "${_pkgname}" --pkgdesc "${pkgdesc}" --exec "/usr/bin/mesen-s" -n
+       gendesk --pkgname "${_pkgname}" --pkgdesc "${pkgdesc}" --exec "/usr/bin/mesen-s" -n -f

        # Invoke using mono in a wrapper, since wine (if installed) would open it otherwise
        cat > "${pkgname}" <<-EOT