Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/PKGBUILD b/PKGBUILD
- index 0f45bd2..e73493f 100644
- --- a/PKGBUILD
- +++ b/PKGBUILD
- @@ -3,12 +3,12 @@
- # Contributor: kleines Filmröllchen <[email protected]>
- pkgname=mesen-ce-git
- -pkgver=r3573.85cb76e9
- +pkgver=r3668.9c113cd
- pkgrel=1
- pkgdesc="Multi-system emulator (NES, SNES, GB, GBA, PCE, SMS/GG, WS)"
- arch=('x86_64')
- url="https://github.com/nesdev-org/MesenCE"
- -license=('GPL3')
- +license=('GPL-3.0-only')
- depends=(libevdev sdl2)
- makedepends=(dotnet-sdk-8.0 git zip clang coreutils)
- provides=("${pkgname%-git}")
- @@ -23,15 +23,34 @@ sha256sums=('SKIP')
- pkgver() {
- cd "$srcdir/${pkgname%-git}"
- - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
- + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
- +}
- +
- +prepare() {
- + cd "$srcdir/${pkgname%-git}"
- +
- + sed -i \
- + -e '/CXXFLAGS = /i MESENFLAGS = ' \
- + -e 's/CFLAGS =/CFLAGS +=/' \
- + -e 's/CXXFLAGS =/CXXFLAGS +=/' \
- + -e 's/LINKOPTIONS :=/LINKOPTIONS := $(LDFLAGS)/' \
- + 'makefile'
- +
- + sed -i -e 's/Exec=Mesen/Exec=mesen-ce/' -e 's/Icon=Mesen/Icon=mesen-ce/' 'Linux/appimage/Mesen.desktop'
- }
- build() {
- cd "$srcdir/${pkgname%-git}"
- - 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%.
- + make SYSTEM_LIBEVDEV=true STATICLINK=false USE_AOT=true # Uses Clang by default, which speeds up emulation by about 40%.
- }
- package() {
- cd "$srcdir/${pkgname%-git}/bin/linux-x64/Release/linux-x64/publish"
- install -Dm 755 Mesen "$pkgdir/usr/bin/${pkgname%-git}"
- +
- + cd "$srcdir/${pkgname%-git}"
- + install -Dm644 'Linux/appimage/Mesen.desktop' "$pkgdir/usr/share/applications/${pkgname%-git}.desktop"
- + install -Dm644 'Linux/appimage/Mesen.48x48.png' "${pkgdir}/usr/share/icons/${pkgname%-git}.png"
- +
- + install -Dm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname%-git}"
- }
Advertisement
Add Comment
Please, Sign In to add comment