blob: 203cf186a83941cd32d47a8fe6237e4144d91123 (
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
|
# Maintainer: Kimiblock Moe
# Contributor: Puqns67 <me@puqns67.icu>
# Contributor: yuioto <yuiotochan@outlook.com>
pkgname=wiliwili-wayland
_pkgname=wiliwili
pkgver=1.5.0
pkgrel=1
pkgdesc='专为手柄控制设计的第三方跨平台B站客户端, 使用 Wayland 运行并阻止唤醒独显'
arch=('x86_64' 'aarch64')
url='https://github.com/xfangfang/wiliwili'
license=('GPL-3.0-or-later')
depends=("mpv" "opencc" "pystring" "glibc" "curl" "hicolor-icon-theme" "openssl" "gcc-libs" "dbus" "zlib" "libwebp" "bash" "libpng")
makedepends=("cmake" "git" "libxi" "ninja" "python" "wayland-protocols" "sdl2")
source=("${_pkgname}"::"git+${url}.git#tag=v${pkgver}" "wiliwili.sh")
sha512sums=('858400ec9030bc1805dcc55fe4072eb6599c8d73911f7111087a6d2a5b5fbc373f3678572a4f3c2c7ef14d1ffe2aa794b3ea512df3a3c48292cc8a39679d07a4'
'77ea4254c2d47853729f3e358fd2ef52ba5ad504db535c10a588fdfc1ab2180fee16f91a371ece85efd73f8a10d6600d4f7bd8aa60cf90ac217c7af67464c21a')
conflicts=(wiliwili)
provides=(wiliwili)
function prepare() {
git -C "${srcdir}/${_pkgname}" submodule update --init --recursive
}
function build() {
cmake \
-S "${srcdir}/${_pkgname}" \
-B "${srcdir}/build" \
-G Ninja \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX='/usr' \
-D INSTALL=ON \
-D PLATFORM_DESKTOP=ON \
-D USE_SYSTEM_CURL=ON \
-D USE_SYSTEM_OPENCC=ON \
-D USE_SYSTEM_PYSTRING=ON \
-D USE_SYSTEM_SDL2=ON \
-D GLFW_BUILD_WAYLAND=ON \
-D GLFW_BUILD_X11=OFF
ninja -C "${srcdir}/build" wiliwili
}
function package() {
DESTDIR="${pkgdir}" ninja -C "${srcdir}/build" install
install -Dm755 "${srcdir}/wiliwili.sh" "${pkgdir}/usr/bin/wiliwili-wayland"
sed -i 's|Exec=wiliwili|Exec=wiliwili-wayland|g' "${pkgdir}/usr/share/applications/cn.xfangfang.wiliwili.desktop"
}
|