musikcube: update to 3.0.2.

This commit is contained in:
Đoàn Trần Công Danh 2024-05-01 20:51:00 +07:00 committed by Đoàn Trần Công Danh
parent d002efe03f
commit 5070a8cde6
2 changed files with 29 additions and 3 deletions

View file

@ -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());
}

View file

@ -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"