Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions archlinuxcn/wiliwili/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,18 @@ url='https://github.com/xfangfang/wiliwili'
license=('GPL-3.0-or-later')
depends=('curl' 'dbus' 'fmt' 'gcc-libs' 'glibc' 'hicolor-icon-theme' 'libwebp' 'mpv' 'opencc' 'openssl' 'pystring' 'qrcodegencpp-cmake' 'tinyxml2' 'zlib')
makedepends=('cmake' 'git' 'libxi' 'libxinerama' 'ninja' 'python' 'wayland-protocols')
source=("${pkgname}"::"git+${url}.git#tag=v${pkgver}")
b2sums=('ac7d1fef8aafe0a34ad9c9447c14432b0d649a7c2e365bfaf95aeebd9efb348e0817adf13114b1687303250769e6fc2635061b3246baa7c611e175c3a52fe11e')

source=("${pkgname}"::"git+${url}.git#tag=v${pkgver}"
"fmt-12.patch")

b2sums=('ac7d1fef8aafe0a34ad9c9447c14432b0d649a7c2e365bfaf95aeebd9efb348e0817adf13114b1687303250769e6fc2635061b3246baa7c611e175c3a52fe11e'
'a7c6f4ad86b102287a8f2d73599e84b917d4654524e74c7dd444ca56cfb3d65a8676c1e6815c8d2dd637a92552cb466b4587a425bfa57b37b7779ce5bb1e6b5b')

prepare() {
git -C "${srcdir}/${pkgname}" rm library/{OpenCC,QR-Code-generator,pystring}
git -C "${srcdir}/${pkgname}" submodule update --init --recursive

# Update borealis to the latest commit to temporarily fix a CMake version compatibility issue.
# Please delete this line after the new version is released.
git -C "${srcdir}/${pkgname}" submodule update --remote library/borealis
patch -d "${srcdir}/${pkgname}" -Np1 -i "${srcdir}/fmt-12.patch"

cmake \
-B "${srcdir}/build" \
Expand Down
29 changes: 29 additions & 0 deletions archlinuxcn/wiliwili/fmt-12.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Submodule library/borealis contains modified content
diff --git a/library/borealis/library/include/borealis/core/logger.hpp b/library/borealis/library/include/borealis/core/logger.hpp
index 7efb49a1..ae73ad8a 100644
--- a/library/borealis/library/include/borealis/core/logger.hpp
+++ b/library/borealis/library/include/borealis/core/logger.hpp
@@ -99,7 +99,8 @@ class Logger
if (sceRtcGetCurrentClockLocalTime)
sceRtcGetCurrentClockLocalTime(&lt);
#else
- std::tm time_tm = fmt::localtime(std::chrono::system_clock::to_time_t(now));
+ std::time_t time_t = std::chrono::system_clock::to_time_t(now);
+ std::tm time_tm = *std::localtime(&time_t);
#endif
std::string log = fmt::format(format, std::forward<Args>(args)...);

diff --git a/library/borealis/library/lib/views/debug_layer.cpp b/library/borealis/library/lib/views/debug_layer.cpp
index e19cf899..bcb1f163 100644
--- a/library/borealis/library/lib/views/debug_layer.cpp
+++ b/library/borealis/library/lib/views/debug_layer.cpp
@@ -54,7 +54,8 @@ DebugLayer::DebugLayer()
sceRtcGetCurrentClockLocalTime(&lt);
std::string timeBase = fmt::format("{:02d}:{:02d}:{:02d}.{:03d}", lt.hour, lt.minute, lt.second, (int)ms);
#else
- std::tm time_tm = fmt::localtime(std::chrono::system_clock::to_time_t(now));
+ std::time_t time_t = std::chrono::system_clock::to_time_t(now);
+ std::tm time_tm = *std::localtime(&time_t);
std::string timeBase = fmt::format("{:%H:%M:%S}.{:03d}", time_tm, (int)ms);
#endif

2 changes: 1 addition & 1 deletion archlinuxcn/wiliwili/lilac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ update_on:
pkgname: tinyxml2
filename: 'usr/lib/libtinyxml2\.so\.([^.]+)'
- source: manual
manual: 3
manual: 4