2023-02-20 20:18:49 +01:00
|
|
|
# Maintainer: lod <aur@cyber-anlage.de>
|
|
|
|
# Contributer: Donn <me@donn.website>
|
|
|
|
|
2022-11-11 05:14:38 +01:00
|
|
|
pkgname=cemu-bin
|
2023-02-20 20:18:49 +01:00
|
|
|
pkgver=2.0.27
|
2023-02-20 20:14:32 +01:00
|
|
|
pkgrel=1
|
2022-11-11 05:14:38 +01:00
|
|
|
pkgdesc="Nintendo Wii U Emulator"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://cemu.info"
|
2023-02-20 20:14:32 +01:00
|
|
|
license=('MPL2')
|
|
|
|
depends=('glu' 'graphite' 'gtk3' 'libice' 'libsm' 'pcre' 'vulkan-driver')
|
|
|
|
makedepends=('patchelf')
|
2022-11-11 05:14:38 +01:00
|
|
|
provides=('cemu')
|
|
|
|
conflicts=('cemu' 'cemu-git')
|
|
|
|
options=(!strip !docs libtool emptydirs)
|
2023-02-20 22:29:00 +01:00
|
|
|
source=("https://github.com/cemu-project/Cemu/releases/download/v${pkgver%.*}-${pkgver##*.}/cemu-${pkgver%.*}-${pkgver##*.}-ubuntu-20.04-x64.zip"
|
|
|
|
"cemu.desktop::https://raw.githubusercontent.com/cemu-project/Cemu/main/dist/linux/info.cemu.Cemu.desktop"
|
|
|
|
"cemu.png::https://github.com/cemu-project/Cemu/raw/main/dist/linux/info.cemu.Cemu.png")
|
2023-02-20 20:18:49 +01:00
|
|
|
sha256sums=('2afd679310cc51d13c785d3bf8e1f391ebd84cf8aa2416c9e33f6ccf246b3f70'
|
2023-02-20 20:14:32 +01:00
|
|
|
'3e9380eb47646fede56c0de59ddab872627c00629820ef5f974be0d07e4f3490'
|
|
|
|
'6458a99b8bd54e44857efa0f82bfd6035e7e072e7e080e3330e4e2cfe89cbd33')
|
2023-02-20 20:17:09 +01:00
|
|
|
|
|
|
|
prepare() {
|
2023-02-20 22:29:00 +01:00
|
|
|
cd $srcdir/Cemu_${pkgver%.*}-${pkgver##*.}
|
2022-11-11 05:14:38 +01:00
|
|
|
|
2023-02-20 20:17:09 +01:00
|
|
|
_libs=('libpcre.so.3' 'libffi.so.7' 'libicuuc.so.71' 'libicui18n.so.71' 'libicudata.so.71')
|
|
|
|
for lib in ${_libs[@]}
|
|
|
|
do
|
2023-02-20 22:29:00 +01:00
|
|
|
patchelf --replace-needed $lib ${lib%.*} ./Cemu
|
2023-02-20 20:17:09 +01:00
|
|
|
done
|
2022-11-11 05:14:38 +01:00
|
|
|
|
2023-02-20 22:29:00 +01:00
|
|
|
patchelf --remove-needed libsepol.so.1 ./Cemu
|
|
|
|
patchelf --remove-needed libselinux.so.1 ./Cemu
|
2023-02-20 20:17:09 +01:00
|
|
|
}
|
2022-11-11 05:14:38 +01:00
|
|
|
|
2023-02-20 20:17:09 +01:00
|
|
|
package() {
|
2023-02-20 22:29:00 +01:00
|
|
|
cd $srcdir/Cemu_${pkgver%.*}-${pkgver##*.}
|
2023-02-20 20:17:09 +01:00
|
|
|
|
2023-02-20 22:29:00 +01:00
|
|
|
install -Dm 755 ./Cemu $pkgdir/usr/bin/cemu
|
2022-11-11 05:14:38 +01:00
|
|
|
|
2023-02-20 22:29:00 +01:00
|
|
|
install -d $pkgdir/usr/share/cemu
|
|
|
|
cp -r ./{gameProfiles,resources,shaderCache} $pkgdir/usr/share/cemu
|
2022-11-11 05:14:38 +01:00
|
|
|
|
2023-02-20 22:29:00 +01:00
|
|
|
sed -i -e '/^Icon=/cIcon=cemu' -e '/^Exec=Cemu/cExec=cemu' $srcdir/cemu.desktop
|
|
|
|
install -Dm 644 -t $pkgdir/usr/share/applications $srcdir/cemu.desktop
|
|
|
|
install -Dm 644 -t $pkgdir/usr/share/icons/hicolor/128x128/apps $srcdir/cemu.png
|
2023-02-20 20:14:32 +01:00
|
|
|
}
|