Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update readme scripts and cmake list #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
26 changes: 6 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -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 &
```
7 changes: 7 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 4 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
./build.sh
cd build
sudo make install