From 8b820f2bc6b635946ca8b2c7a8dc40b96e8dc046 Mon Sep 17 00:00:00 2001 From: Bart Ribbers <bribbers@disroot.org> Date: Sun, 28 Nov 2021 13:04:41 +0100 Subject: [PATCH] community/glacier-settings: upgrade to 0.4 --- ...er-mode-and-example-plugins-optional.patch | 62 ------------------- community/glacier-settings/APKBUILD | 12 ++-- 2 files changed, 5 insertions(+), 69 deletions(-) delete mode 100644 community/glacier-settings/0001-Make-developer-mode-and-example-plugins-optional.patch diff --git a/community/glacier-settings/0001-Make-developer-mode-and-example-plugins-optional.patch b/community/glacier-settings/0001-Make-developer-mode-and-example-plugins-optional.patch deleted file mode 100644 index e2397d29d250..000000000000 --- a/community/glacier-settings/0001-Make-developer-mode-and-example-plugins-optional.patch +++ /dev/null @@ -1,62 +0,0 @@ -From 0a847a32663a4867f3521c838170d1b838c88e87 Mon Sep 17 00:00:00 2001 -From: Chupligin Sergey <neochapay@gmail.com> -Date: Wed, 23 Jun 2021 15:07:00 +0300 -Subject: [PATCH] Make developer mode and example plugins optional. Fixed #18 - ---- - CMakeLists.txt | 3 +++ - src/CMakeLists.txt | 22 +++++++++++++++++++--- - 2 files changed, 22 insertions(+), 3 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 9e97de5..0a93da9 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -16,6 +16,9 @@ set(QT_MIN_VERSION "5.6.0") - find_package(Qt5 COMPONENTS Qml Quick Positioning LinguistTools REQUIRED) - find_package(Glacier COMPONENTS App REQUIRED) - -+option(MER_DEVMODE "Install mer developer mode plugin" OFF) -+option(BUILD_EXAMPLES "Install example plugin" OFF) -+ - add_subdirectory(src) - - # Translations -diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt -index d0a20dc..becd57d 100644 ---- a/src/CMakeLists.txt -+++ b/src/CMakeLists.txt -@@ -7,9 +7,7 @@ set(SRC - models/settingsmodel.cpp - models/settingsmodel.h) - set(QML_PLUGINS -- qml/plugins/example/example.json - qml/plugins/bluez/bluez.json -- qml/plugins/developermode/developermode.json - qml/plugins/display/display.json - qml/plugins/datetime/datetime.json - qml/plugins/wifi/wifi.json -@@ -38,4 +36,22 @@ install(FILES ${QML_PLUGINS} - DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/glacier-settings/plugins) - install(DIRECTORY qml - DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/glacier-settings -- PATTERN "*.json" EXCLUDE) -+ PATTERN "*.json" EXCLUDE -+ PATTERN "example" EXCLUDE -+ PATTERN "developermode" EXCLUDE) -+ -+if(MER_DEVMODE) -+ install(FILES qml/plugins/developermode/developermode.json -+ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/glacier-settings/plugins) -+ install(DIRECTORY qml/plugins/developermode -+ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/glacier-settings/qml/plugins -+ PATTERN "*.json" EXCLUDE) -+endif() -+ -+if(BUILD_EXAMPLES) -+ install(FILES qml/plugins/example/example.json -+ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/glacier-settings/plugins) -+ install(DIRECTORY qml/plugins/example -+ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/glacier-settings/qml/plugins -+ PATTERN "*.json" EXCLUDE) -+endif() diff --git a/community/glacier-settings/APKBUILD b/community/glacier-settings/APKBUILD index ee9e5190579b..aaee7e0009d9 100644 --- a/community/glacier-settings/APKBUILD +++ b/community/glacier-settings/APKBUILD @@ -1,8 +1,8 @@ # Contributor: Bart Ribbers <bribbers@disroot.org> # Maintainer: Bart Ribbers <bribbers@disroot.org> pkgname=glacier-settings -pkgver=0.1.4 -pkgrel=2 +pkgver=0.4 +pkgrel=0 pkgdesc="The Glacier settings application" url="https://github.com/nemomobile-ux/glacier-settings" # armhf blocked by qtquickcontrols-nemo @@ -20,14 +20,13 @@ depends=" makedepends=" cmake libglacierapp-dev + nemo-qml-plugin-systemsettings-dev qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtlocation-dev qt5-qttools-dev " -source="https://github.com/nemomobile-ux/glacier-settings/archive/$pkgver/glacier-settings-$pkgver.tar.gz - 0001-Make-developer-mode-and-example-plugins-optional.patch - " +source="$pkgname-$pkgver.tar.gz::https://github.com/nemomobile-ux/glacier-settings/archive/$pkgver.tar.gz" options="!check" # No tests build() { @@ -42,6 +41,5 @@ package() { } sha512sums=" -2385e7b75ecf9034f09bb1429546cc4d6737ddde6a56c8545a2cf1a75026ddae7f0ca376d552fc6cfcf86561dce56f46e522980b9400a1503fcd376f4447b192 glacier-settings-0.1.4.tar.gz -943dc6315a70d3dd8446c30b6d9598171c2f82afba51ebc1d6713465e0ed53c66381e5f2ec32c2562cafb24e7cc30a08c436211e64df37c5baf2fa73e40a7e4f 0001-Make-developer-mode-and-example-plugins-optional.patch +a2eafa04189f01e0dcb42975b914891fbbb1cf03be2e4758b4bdf81332faae2a664eff7d221cd775a7740e1e65cfb2df15838efdb591e0af11169d53fa7f4113 glacier-settings-0.4.tar.gz " -- GitLab