diff options
author | CrankySupertoon | 2020-04-11 22:39:59 -0400 |
---|---|---|
committer | CrankySupertoon | 2020-04-11 22:39:59 -0400 |
commit | f7e1a39641027b8a7e74832826ae2d7d2bcdd7ad (patch) | |
tree | eb595e1d05ed9e69f6b4874def904ee07bbbe96d | |
download | aur-f7e1a39641027b8a7e74832826ae2d7d2bcdd7ad.tar.gz |
Mesen-S-Git repository Initial Commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 62 |
2 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9e22d0b75fd3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = mesen-s-git + pkgdesc = A cross-platform Super Nintendo emulator + pkgver = 0.3.0.r160.g1b44400 + pkgrel = 1 + url = https://github.com/SourMesen/Mesen-S + arch = x86_64 + license = GPL3 + makedepends = clang + makedepends = gendesk + makedepends = zip + depends = mono + depends = sdl2 + conflicts = mesen-s + source = Mesen-S::git+https://github.com/SourMesen/Mesen-S.git + sha256sums = SKIP + +pkgname = mesen-s-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..67eb73f7a958 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,62 @@ +# Maintainer: CrankySupertoon <crankysupertoon@gmail.com.com> +# Contributor: Andrew O'Neill <andrew at meanjollies dot com> +# Contributor: John Jenkins <twodopeshaggy@gmail.com> +# Contributor: Tony Lambiris <tony@criticalstack.com> + +pkgname=mesen-s-git +_pkgname=Mesen-S +pkgver=0.3.0.r160.g1b44400 +pkgrel=1 +pkgdesc='A cross-platform Super Nintendo emulator' +arch=('x86_64') +makedepends=('clang' 'gendesk' 'zip') +depends=('mono' 'sdl2') +url='https://github.com/SourMesen/Mesen-S' +conflicts=('mesen-s') +license=('GPL3') +source=("${_pkgname}::git+https://github.com/SourMesen/Mesen-S.git") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_pkgname}" + + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd "${srcdir}/${_pkgname}" + + # 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 + + # Invoke using mono in a wrapper, since wine (if installed) would open it otherwise + cat > "${pkgname}" <<-EOT + #!/bin/sh + /usr/bin/mono /opt/Mesen-S/Mesen-S "\$@" + EOT +} + +build() { + cd "${srcdir}/${_pkgname}" + + mkdir -p bin + make +} + +package() { + cd "${srcdir}/${_pkgname}" + + install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname%%-git}" + install -Dm644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop" + + cd "${srcdir}/${_pkgname}/UI/Resources" + install -Dm644 "MesenSIcon.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png" + + cd "${srcdir}/${_pkgname}/bin/x64/Release" + install -Dm755 "${_pkgname}.exe" "${pkgdir}/opt/${_pkgname}/${_pkgname}" + + cd "${srcdir}/${_pkgname}/InteropDLL/obj.x64" + install -Dm644 "libMesenSCore.x64.dll" "${pkgdir}/usr/lib/libMesenSCore.dll" +} |