66 lines
1.9 KiB
Text
66 lines
1.9 KiB
Text
|
# Maintainer: Donn <me@donn.website>
|
||
|
pkgname=cemu-bin
|
||
|
_pkgver_raw=2.0
|
||
|
_buildno=14
|
||
|
pkgver=${_pkgver_raw}r${_buildno}
|
||
|
pkgrel=1
|
||
|
pkgdesc="Nintendo Wii U Emulator"
|
||
|
arch=('x86_64')
|
||
|
url="https://cemu.info"
|
||
|
license=('MPL-2.0')
|
||
|
groups=()
|
||
|
depends=(
|
||
|
'pugixml'
|
||
|
'pulseaudio'
|
||
|
'opengl-driver'
|
||
|
'vulkan-driver'
|
||
|
'icu'
|
||
|
'gtk3'
|
||
|
'graphite'
|
||
|
'pcre'
|
||
|
'systemd'
|
||
|
'libffi'
|
||
|
)
|
||
|
provides=('cemu')
|
||
|
conflicts=('cemu' 'cemu-git')
|
||
|
options=(!strip !docs libtool emptydirs)
|
||
|
install=
|
||
|
changelog=
|
||
|
source=(
|
||
|
"https://github.com/cemu-project/Cemu/releases/download/v${_pkgver_raw}-${_buildno}/cemu-${_pkgver_raw}-${_buildno}-ubuntu-20.04-x64.zip"
|
||
|
"info.cemu.Cemu.desktop"
|
||
|
"info.cemu.Cemu.metainfo.xml"
|
||
|
"info.cemu.Cemu.png"
|
||
|
)
|
||
|
noextract=()
|
||
|
sha256sums=(
|
||
|
'92760341c85e7566464bc7847d76ac1b2bf8afb3bf9895514a717cc564a96470'
|
||
|
'c9f711d46917ac112c497e8600c6e99d68bb3d16b862e9232dc7578314b95978'
|
||
|
'054fc7d9050a545bb9d4a0320720f4cee8b994a47c3daf029edbda1e996d3447'
|
||
|
'6458a99b8bd54e44857efa0f82bfd6035e7e072e7e080e3330e4e2cfe89cbd33'
|
||
|
)
|
||
|
|
||
|
package() {
|
||
|
CEMU_BIN_PATH="$srcdir/Cemu_${_pkgver_raw}-${_buildno}/Cemu"
|
||
|
|
||
|
# Patch
|
||
|
patchelf --replace-needed libpcre.so.3 libpcre.so $CEMU_BIN_PATH
|
||
|
patchelf --replace-needed libffi.so.7 libffi.so $CEMU_BIN_PATH
|
||
|
|
||
|
patchelf --replace-needed libicuuc.so.71 libicuuc.so $CEMU_BIN_PATH
|
||
|
patchelf --replace-needed libicui18n.so.71 libicui18n.so $CEMU_BIN_PATH
|
||
|
patchelf --replace-needed libicudata.so.71 libicudata.so $CEMU_BIN_PATH
|
||
|
|
||
|
patchelf --remove-needed libsepol.so.1 $CEMU_BIN_PATH
|
||
|
patchelf --remove-needed libselinux.so.1 $CEMU_BIN_PATH
|
||
|
|
||
|
# Chmod
|
||
|
chmod +x $CEMU_BIN_PATH
|
||
|
|
||
|
mkdir -p "$pkgdir/usr/share/cemu"
|
||
|
cp -r "$srcdir/Cemu_${_pkgver_raw}-${_buildno}"/* "$pkgdir/usr/share/cemu"
|
||
|
|
||
|
install -Dm644 -t "$pkgdir"/usr/share/applications info.cemu.Cemu.desktop
|
||
|
install -Dm644 -t "$pkgdir"/usr/share/metainfo info.cemu.Cemu.metainfo.xml
|
||
|
install -Dm644 -t "$pkgdir"/usr/share/icons/hicolor/128x128/apps info.cemu.Cemu.png
|
||
|
}
|