40 lines
1.5 KiB
Bash
40 lines
1.5 KiB
Bash
# Maintainer: Felitendo
|
|
# This PKGBUILD is updated automatically:
|
|
# https://github.com/Felitendo/PKGBUILDS
|
|
|
|
pkgname=sharpemu-bin
|
|
pkgver=0.0.2_beta.4
|
|
pkgrel=1
|
|
pkgdesc="Experimental PlayStation 5 emulator (prebuilt)"
|
|
arch=('x86_64')
|
|
url="https://github.com/sharpemu/sharpemu"
|
|
license=('GPL-2.0-or-later')
|
|
# The self-contained .NET binary bundles its own libglfw.so.3, which in turn
|
|
# dlopens the X11/Wayland client libraries at runtime.
|
|
depends=('glibc' 'gcc-libs' 'icu' 'openssl' 'vulkan-icd-loader'
|
|
'libx11' 'libxcursor' 'libxi' 'libxinerama' 'libxrandr'
|
|
'libxkbcommon' 'wayland')
|
|
provides=('sharpemu')
|
|
conflicts=('sharpemu')
|
|
options=('!strip')
|
|
|
|
# upstream tags use hyphens (v0.0.2-beta.4), which pkgver must not contain
|
|
_upver="${pkgver//_/-}"
|
|
noextract=("sharpemu-${_upver}-linux-x64.tar.gz")
|
|
source_x86_64=("https://github.com/sharpemu/sharpemu/releases/download/v${_upver}/sharpemu-${_upver}-linux-x64.tar.gz")
|
|
sha256sums_x86_64=('0818d2980e21692520043dd5f88cfc74d841e31126ac4b2a05d15f0d8e52b9cc')
|
|
|
|
package() {
|
|
# extracted straight into pkgdir so new files in future upstream archives
|
|
# are picked up automatically
|
|
install -d "$pkgdir/opt/$pkgname"
|
|
tar -xzf "$srcdir/sharpemu-${_upver}-linux-x64.tar.gz" -C "$pkgdir/opt/$pkgname"
|
|
chmod 755 "$pkgdir/opt/$pkgname/SharpEmu"
|
|
|
|
install -d "$pkgdir/usr/bin"
|
|
ln -s "/opt/$pkgname/SharpEmu" "$pkgdir/usr/bin/sharpemu"
|
|
|
|
install -Dm644 "$pkgdir/opt/$pkgname/LICENSE.txt" \
|
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
|
|
}
|