blob: c7699210b5499e0c714752add19e6640b416907d (
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
|
# Maintainer: WorMzy Tykashi <wormzy.tykashi@gmail.com>
pkgname=chiaki-ng-git
_gitname=chiaki-ng
pkgver=1861_2025.05.02
pkgrel=1
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'
'gcc-libs'
'glibc'
'hicolor-icon-theme'
'hidapi'
'json-c'
'libidn2'
'libplacebo'
'libpsl'
'libssh2'
'miniupnpc'
'openssl'
'opus'
'qt6-base'
'qt6-declarative'
'qt6-svg'
'sdl2'
'speexdsp'
'zlib'
)
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' 'chiaki-ng')
source=(git+"https://github.com/streetpea/${_gitname}.git")
sha256sums=('SKIP')
pkgver() {
# New upstream 'weekly-canary' tag is long and ugly, use something less garish.
cd ${_gitname}
_date=$(git log -1 --date=short --pretty=format:%cd)
_commits=$(git rev-list --count HEAD) # total commits is the most sane way of getting incremental pkgver
printf "%s_%s\n" "${_commits}" "${_date}" | sed 's/-/./g'
}
prepare() {
cd ${_gitname}
mkdir build
# Remove curl submodule
git rm third-party/curl
# Fix curl lib name
sed -i 's:libcurl_shared:libcurl:' lib/CMakeLists.txt
# Initialize remaining submodules
git submodule update --init
}
build() {
cd ${_gitname}/build
export CFLAGS+=" -std=gnu17"
cmake .. -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE="None" \
-DCHIAKI_USE_SYSTEM_CURL="ON" -DCMAKE_POLICY_VERSION_MINIMUM=3.5
make
}
package() {
cd ${_gitname}/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
}
|