patlefort

mesen-ce-git patch

May 17th, 2026 (edited)
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.95 KB | Source Code | 0 0
  1. diff --git a/PKGBUILD b/PKGBUILD
  2. index 0f45bd2..e73493f 100644
  3. --- a/PKGBUILD
  4. +++ b/PKGBUILD
  5. @@ -3,12 +3,12 @@
  6.  # Contributor: kleines Filmröllchen <[email protected]>
  7.  
  8.  pkgname=mesen-ce-git
  9. -pkgver=r3573.85cb76e9
  10. +pkgver=r3668.9c113cd
  11.  pkgrel=1
  12.  pkgdesc="Multi-system emulator (NES, SNES, GB, GBA, PCE, SMS/GG, WS)"
  13.  arch=('x86_64')
  14.  url="https://github.com/nesdev-org/MesenCE"
  15. -license=('GPL3')
  16. +license=('GPL-3.0-only')
  17.  depends=(libevdev sdl2)
  18.  makedepends=(dotnet-sdk-8.0 git zip clang coreutils)
  19.  provides=("${pkgname%-git}")
  20. @@ -23,15 +23,34 @@ sha256sums=('SKIP')
  21.  pkgver() {
  22.     cd "$srcdir/${pkgname%-git}"
  23.  
  24. -   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  25. +   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
  26. +}
  27. +
  28. +prepare() {
  29. +   cd "$srcdir/${pkgname%-git}"
  30. +
  31. +   sed -i \
  32. +       -e '/CXXFLAGS = /i MESENFLAGS = ' \
  33. +       -e 's/CFLAGS =/CFLAGS +=/' \
  34. +       -e 's/CXXFLAGS =/CXXFLAGS +=/' \
  35. +       -e 's/LINKOPTIONS :=/LINKOPTIONS := $(LDFLAGS)/' \
  36. +       'makefile'
  37. +
  38. +   sed -i -e 's/Exec=Mesen/Exec=mesen-ce/' -e 's/Icon=Mesen/Icon=mesen-ce/' 'Linux/appimage/Mesen.desktop'
  39.  }
  40.  
  41.  build() {
  42.     cd "$srcdir/${pkgname%-git}"
  43. -   MAKEFLAGS="${MAKEFLAGS} -j$(nproc)" make LTO=true SYSTEM_LIBEVDEV=true STATICLINK=false USE_AOT=true # Uses Clang by default, which speeds up emulation by about 40%.
  44. +   make SYSTEM_LIBEVDEV=true STATICLINK=false USE_AOT=true # Uses Clang by default, which speeds up emulation by about 40%.
  45.  }
  46.  
  47.  package() {
  48.     cd "$srcdir/${pkgname%-git}/bin/linux-x64/Release/linux-x64/publish"
  49.     install -Dm 755 Mesen "$pkgdir/usr/bin/${pkgname%-git}"
  50. +
  51. +   cd "$srcdir/${pkgname%-git}"
  52. +   install -Dm644 'Linux/appimage/Mesen.desktop' "$pkgdir/usr/share/applications/${pkgname%-git}.desktop"
  53. +   install -Dm644 'Linux/appimage/Mesen.48x48.png' "${pkgdir}/usr/share/icons/${pkgname%-git}.png"
  54. +
  55. +   install -Dm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname%-git}"
  56.  }
  57.  
Advertisement
Add Comment
Please, Sign In to add comment