blob: 0e308dbad958359a96ffebad5ef045d81e542320 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# Maintainer: Alexandre Bouvier <contact@amb.tf>
_pkgname=cemu
pkgname=$_pkgname-git
pkgver=2.0.65.r6.gca01e923
pkgrel=1
pkgdesc="Nintendo Wii U emulator"
arch=('x86_64')
url="https://cemu.info/"
license=('MPL-2.0')
depends=(
'discord-rpc'
'gcc-libs'
'glibc'
'hicolor-icon-theme'
'libx11'
'pugixml'
'sdl2'
'spirv-tools'
'wxwidgets-gtk3>=3.2'
)
makedepends=(
'boost'
'cmake>=3.21.1'
'cubeb'
'curl'
'fmt>=9'
'git'
'glib2'
'glm'
'glslang'
'glu'
'gtk3'
'hidapi'
'libgl'
'libpng'
'libusb'
'libzip'
'nasm'
'openssl'
'rapidjson'
'vulkan-headers>=1:1.3.225'
'wayland'
'wayland-protocols'
'zarchive>=0.1.2'
'zlib'
'zstd'
)
provides=("$_pkgname")
conflicts=("$_pkgname")
source=(
"$_pkgname::git+https://github.com/cemu-project/Cemu.git"
'imgui::git+https://github.com/ocornut/imgui.git'
)
b2sums=(
'SKIP'
'SKIP'
)
pkgver() {
cd $_pkgname
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd $_pkgname
git config submodule.dependencies/imgui.url ../imgui
git -c protocol.file.allow=always submodule update
rm -r bin/shaderCache
sed -i '/CMAKE_INTERPROCEDURAL_OPTIMIZATION/d' CMakeLists.txt
sed -i '/discord-rpc/d' CMakeLists.txt
sed -i '/FMT_HEADER_ONLY/d' src/Common/precompiled.h
# https://github.com/KhronosGroup/glslang/pull/3487
sed -i '/glslang REQUIRED/i find_package(SPIRV-Tools-opt)' CMakeLists.txt
}
build() {
cmake -S $_pkgname -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
-DENABLE_VCPKG=OFF \
-DPORTABLE=OFF \
-Wno-dev
cmake --build build
}
package() {
depends+=(
'libboost_program_options.so'
'libcrypto.so'
'libcubeb.so'
'libcurl.so'
'libfmt.so'
'libgdk-3.so'
'libgobject-2.0.so'
'libgtk-3.so'
'libhidapi-hidraw.so'
'libssl.so'
'libusb-1.0.so'
'libwayland-client.so'
'libz.so'
'libzarchive.so'
'libzip.so'
'libzstd.so'
)
cd $_pkgname
# shellcheck disable=SC2154
install -d "$pkgdir"/usr/{bin,share/Cemu}
mv bin/Cemu_release "$pkgdir"/usr/bin/Cemu
cp -dr --no-preserve=ownership -t "$pkgdir"/usr/share/Cemu bin/*
install -Dm644 -t "$pkgdir"/usr/share/applications dist/linux/info.cemu.Cemu.desktop
install -Dm644 -t "$pkgdir"/usr/share/metainfo dist/linux/info.cemu.Cemu.metainfo.xml
install -Dm644 src/resource/logo_icon.png "$pkgdir"/usr/share/icons/hicolor/128x128/apps/info.cemu.Cemu.png
}
|