blob: 09f259ca33ef577711393371c03eea582326fc9b (
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
|
# Maintainer: WorMzy Tykashi <wormzy.tykashi@gmail.com>
pkgname=chiaki-ng
pkgver=1.10.0
# commit IDs can be found at https://github.com/streetpea/chiaki-ng/releases
_commit="3f8fd712cbc0becd3a5ea588340d72bf451c12b5"
pkgrel=2
pkgdesc="Free and Open Source PlayStation Remote Play Client"
arch=(i686 x86_64)
url="https://streetpea.github.io/chiaki-ng/"
license=('LicenseRef-AGPL-3.0-only-OpenSSL')
depends=(
'curl'
'ffmpeg'
'fftw'
'glibc'
'hicolor-icon-theme'
'hidapi'
'json-c'
'libgcc'
'libplacebo'
'libstdc++'
'miniupnpc'
'openssl'
'opus'
'qt6-base'
'qt6-declarative'
'qt6-svg'
'qt6-webengine'
'sdl2'
'speexdsp'
)
makedepends=(
'git'
'cmake'
'python-protobuf'
'python-setuptools'
'vulkan-headers'
)
optdepends=(
'intel-media-driver: vaapi backend for Intel GPUs [>= Broadwell]'
'libva-intel-driver: vaapi backend for Intel GPUs [<= Haswell]'
'libva-vdpau-driver: vaapi backend for Nvidia and AMD GPUs'
'libva-mesa-driver: alternative vaapi backend for AMD GPUs'
) # See https://wiki.archlinux.org/index.php/Hardware_video_acceleration
provides=('chiaki')
conflicts=('chiaki')
# At time of writing, the dev's public key isn't available on keyservers, import from github using, e.g.
# curl -o - https://github.com/streetpea.gpg | gpg --import
validpgpkeys=('FCCF693D5A9081571B90DDA2B0050C45E5804C8D')
source=(git+"https://github.com/streetpea/${pkgname}.git?signed#commit=${_commit}"
Qt6GuiPrivate-fix.patch
https://github.com/streetpea/chiaki-ng/commit/0caf11cbdd665ec40d81d245aa4da215504ac459.patch)
sha256sums=('2e39dcb7cd97721e7425bb04d2bb4a1e0b7fd67ce2b87787b1dd020f00f1b354'
'121199cce7692ac30d4353b36041004007665c92f9895175e6d0f09b86d60e0f'
'476046bfc77c09569b6d05e46ae7ba673a500a51ee5f48795c410c3cd3215d04')
prepare() {
cd ${pkgname}
mkdir -p build
# Remove curl submodule
git rm third-party/curl
# Fix curl lib name
sed -i 's:libcurl_shared:libcurl:' lib/CMakeLists.txt
# Patch missing CMake module
patch -Np1 -i "${srcdir}/Qt6GuiPrivate-fix.patch"
# Patch for ffmpeg9 support
patch -Np1 -i "${srcdir}/0caf11cbdd665ec40d81d245aa4da215504ac459.patch"
# Initialize remaining submodules
git submodule update --init
}
build() {
cd ${pkgname}/build
export CFLAGS+=" -std=gnu17"
cmake .. -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE="None" \
-DCHIAKI_USE_SYSTEM_CURL="ON"
make
}
package() {
cd ${pkgname}/build
make DESTDIR="${pkgdir}" install
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}/"
for lic in ../LICENSES/*; do
install -m644 ${lic} "${pkgdir}/usr/share/licenses/${pkgname}/${lic##*/}"
done
}
|