From df535eb129c9a4f25d6865dfbffae1b58d01dba7 Mon Sep 17 00:00:00 2001 From: Puqns67 Date: Mon, 1 May 2023 12:59:04 +0800 Subject: [PATCH] [Add] wiliwili --- packages/.gitignore | 1 + packages/wiliwili/PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 packages/wiliwili/PKGBUILD diff --git a/packages/.gitignore b/packages/.gitignore index 013d822..090b1f4 100644 --- a/packages/.gitignore +++ b/packages/.gitignore @@ -3,5 +3,6 @@ */*.pkg.tar.zst */*.tar.gz */*.zip +*/*.log !*/keys/ diff --git a/packages/wiliwili/PKGBUILD b/packages/wiliwili/PKGBUILD new file mode 100644 index 0000000..8561025 --- /dev/null +++ b/packages/wiliwili/PKGBUILD @@ -0,0 +1,40 @@ +# 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" +}