diff --git a/CMakeLists.txt b/CMakeLists.txt index b69c5c6..47e3f83 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,5 @@ -cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR) +cmake_minimum_required(VERSION 3.16 FATAL_ERROR) +project(applet_weather_widget) set(QT_MIN_VERSION "5.4.0") set(KF5_MIN_VERSION "5.0.0") diff --git a/README.md b/README.md index b3e88d1..5f54f60 100644 --- a/README.md +++ b/README.md @@ -1,36 +1,22 @@ # plasma-applet-weather-widget -Plasma 5 applet for displaying weather information from yr.no (and other) server. +Plasma 5 applet for displaying weather information from Open Weather Map and yr.no . ## Requirements -* Plasma 5 & Qt 5.4+ +* Qt >= 5.4 +* KF5 >= 5 * Qt5 Graphical Effects +* QML Module QtQuick XML List Model * Extra CMake Modules (only for building) ## Compile and install ``` git clone https://github.com/kotelnik/plasma-applet-weather-widget cd plasma-applet-weather-widget -mkdir build -cd build -cmake .. \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release \ - -DLIB_INSTALL_DIR=lib \ - -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -make -sudo make install +./install.sh ``` ## Repeated build and install ``` -cd build -rm -r * -cmake .. \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release \ - -DLIB_INSTALL_DIR=lib \ - -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -make -sudo make install +./dev-build.sh killall plasmashell; plasmashell & ``` diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..ed981c5 --- /dev/null +++ b/build.sh @@ -0,0 +1,7 @@ +#!/bin/sh +if ! [ -a build ] ; then + mkdir build +fi +cd build +cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -Wno-dev .. +make -j$(nproc) diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..385c9ee --- /dev/null +++ b/install.sh @@ -0,0 +1,4 @@ +#!/bin/sh +./build.sh +cd build +sudo make install