From acfca78a3b347e66304f16cb92c921d670aecc22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 1 May 2024 20:51:00 +0700 Subject: [PATCH] musikcube: update to 3.0.2. --- srcpkgs/musikcube/patches/musl.patch | 26 ++++++++++++++++++++++++++ srcpkgs/musikcube/template | 6 +++--- 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/musikcube/patches/musl.patch diff --git a/srcpkgs/musikcube/patches/musl.patch b/srcpkgs/musikcube/patches/musl.patch new file mode 100644 index 00000000000000..0b35fbd701c2b5 --- /dev/null +++ b/srcpkgs/musikcube/patches/musl.patch @@ -0,0 +1,26 @@ +--- a/src/musikcube/app/model/DirectoryAdapter.cpp ++++ b/src/musikcube/app/model/DirectoryAdapter.cpp +@@ -127,19 +127,23 @@ static void buildDirectoryList( + } + catch (...) { + /* may throw trying to open the directory */ + } + ++#ifdef __GLIBC__ + try { + std::sort( + target.begin(), + target.end(), + std::locale(setlocale(LC_ALL, nullptr))); + } + catch (...) { + std::sort(target.begin(), target.end()); + } ++#else ++ std::sort(target.begin(), target.end()); ++#endif + } + + static std::string pathToString(fs::path path) { + return musik::core::NormalizeDir(path.u8string()); + } diff --git a/srcpkgs/musikcube/template b/srcpkgs/musikcube/template index 8c4a51840859ec..acdf51453b8c94 100644 --- a/srcpkgs/musikcube/template +++ b/srcpkgs/musikcube/template @@ -1,7 +1,7 @@ # Template file for 'musikcube' pkgname=musikcube -version=3.0.0 -revision=3 +version=3.0.2 +revision=1 build_style=cmake make_cmd=make configure_args="-DNO_NCURSESW=1" @@ -17,7 +17,7 @@ license="BSD-3-Clause" homepage="https://musikcube.com/" changelog="https://raw.githubusercontent.com/clangen/musikcube/master/CHANGELOG.txt" distfiles="https://github.com/clangen/musikcube/archive/${version}.tar.gz" -checksum=b857980c214f86f17cc288eda4562b51683cd42a843a4a4d8d8e60169cf87345 +checksum=65f82db36d635bdbfd99f67d1d68c9e1aedf8e38efa627f303cf7971c306d063 build_options="elogind" desc_option_elogind="Support MPRIS interface via elogind" build_options_default="elogind"