From 6dee90acef90e41ded868a5461550f44ce3987e5 Mon Sep 17 00:00:00 2001 From: Puqns67 Date: Mon, 1 May 2023 14:34:37 +0800 Subject: [PATCH] [Perf] Move wiliwili to AUR as submodule --- .gitmodules | 3 +++ packages/wiliwili | 1 + packages/wiliwili/PKGBUILD | 40 -------------------------------------- 3 files changed, 4 insertions(+), 40 deletions(-) create mode 160000 packages/wiliwili delete mode 100644 packages/wiliwili/PKGBUILD diff --git a/.gitmodules b/.gitmodules index f6bc823..437fb18 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/packages/wiliwili b/packages/wiliwili new file mode 160000 index 0000000..aad81e4 --- /dev/null +++ b/packages/wiliwili @@ -0,0 +1 @@ +Subproject commit aad81e43b00ced601301a551987d0b8300662865 diff --git a/packages/wiliwili/PKGBUILD b/packages/wiliwili/PKGBUILD deleted file mode 100644 index 8561025..0000000 --- a/packages/wiliwili/PKGBUILD +++ /dev/null @@ -1,40 +0,0 @@ -# Maintainer: Puqns67 -# Contributor: yuioto - -# This PKGBUILD is base on the AUR repo wiliwili-git, by yuioto - -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" -}