[Perf] Move wiliwili to AUR as submodule

This commit is contained in:
Puqns67 2023-05-01 14:34:37 +08:00
parent df535eb129
commit 6dee90acef
Signed by: Puqns67
GPG Key ID: 9669DF042554F536
3 changed files with 4 additions and 40 deletions

3
.gitmodules vendored
View File

@ -4,3 +4,6 @@
[submodule "AURPKG/smiley-sans-bin"]
path = packages/smiley-sans-bin
url = ssh://aur@aur.archlinux.org/smiley-sans-bin.git
[submodule "AURPKG/wiliwili"]
path = packages/wiliwili
url = ssh://aur@aur.archlinux.org/wiliwili.git

1
packages/wiliwili Submodule

@ -0,0 +1 @@
Subproject commit aad81e43b00ced601301a551987d0b8300662865

View File

@ -1,40 +0,0 @@
# Maintainer: Puqns67 <me@puqns67.icu>
# Contributor: yuioto <yuiotochan@outlook.com>
# This PKGBUILD is base on the AUR repo wiliwili-git, by yuioto <yuiotochan@outlook.com>
pkgname=wiliwili
pkgver=1.0.1
pkgrel=1
pkgdesc='专为手柄控制设计的第三方跨平台B站客户端'
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url='https://github.com/xfangfang/wiliwili'
license=('GPL3')
depends=('mpv')
makedepends=('cmake' 'git' 'libxi' 'python' 'wayland-protocols')
conflicts=("${pkgname}-git")
source=("${pkgname}"::"git+${url}.git#tag=v${pkgver}")
sha512sums=('SKIP')
prepare() {
git -C "${srcdir}/${pkgname}" submodule update --init --recursive
}
build() {
cmake \
-S "${srcdir}/${pkgname}" \
-B "${srcdir}/${pkgname}/build" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-DPLATFORM_DESKTOP=ON \
-DUSE_SYSTEM_CURL=ON \
-DINSTALL=ON \
-DGLFW_BUILD_WAYLAND=ON \
-DGLFW_BUILD_X11=ON
make -C "${srcdir}/${pkgname}/build" wiliwili
}
package() {
DESTDIR="${pkgdir}" cmake --install "${srcdir}/${pkgname}/build"
}