cemu-bin/PKGBUILD

64 lines
1.7 KiB
Text
Raw Normal View History

2022-11-11 05:14:38 +01:00
# Maintainer: Donn <me@donn.website>
pkgname=cemu-bin
2022-11-11 05:27:22 +01:00
pkgver=2.0
2022-11-13 17:18:34 +01:00
pkgrel=15
2022-11-11 05:14:38 +01:00
pkgdesc="Nintendo Wii U Emulator"
arch=('x86_64')
url="https://cemu.info"
license=('MPL-2.0')
groups=()
depends=(
2022-11-13 17:18:34 +01:00
'pugixml'
2022-11-11 05:14:38 +01:00
'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=(
2022-11-11 05:27:22 +01:00
"https://github.com/cemu-project/Cemu/releases/download/v${pkgver}-${pkgrel}/cemu-${pkgver}-${pkgrel}-ubuntu-20.04-x64.zip"
2022-11-11 05:14:38 +01:00
"info.cemu.Cemu.desktop"
"info.cemu.Cemu.metainfo.xml"
"info.cemu.Cemu.png"
)
noextract=()
sha256sums=(
2022-11-13 17:18:34 +01:00
'97fcfd289daa67bf53e9169c2e487c575c96ec241541518cedd67bc0f33ebb6f'
'SKIP'
'SKIP'
'SKIP'
2022-11-11 05:14:38 +01:00
)
package() {
2022-11-11 05:27:22 +01:00
CEMU_BIN_PATH="$srcdir/Cemu_${pkgver}-${pkgrel}/Cemu"
2022-11-11 05:14:38 +01:00
# 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"
2022-11-11 05:27:22 +01:00
cp -r "$srcdir/Cemu_${pkgver}-${pkgrel}"/* "$pkgdir/usr/share/cemu"
2022-11-11 05:14:38 +01:00
2022-11-13 17:18:34 +01:00
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
2022-11-11 05:14:38 +01:00
}