desktop/plasma5-applets-weather-widget/PKGBUILD

35 lines
886 B
Bash
Raw Normal View History

2016-01-23 22:15:26 +08:00
pkgname=plasma5-applets-weather-widget
_name=plasma-applet-weather-widget
pkgver=1.6.9
2016-01-23 22:15:26 +08:00
pkgrel=1
pkgdesc="Applet for displaying weather information from yr.no server"
arch=('x86_64')
url="https://github.com/kotelnik/plasma-applet-weather-widget"
license=('GPL')
group=('plasma5-applets')
depends=('plasma-workspace' 'qt5-graphicaleffects')
makedepends=('extra-cmake-modules')
source=("https://github.com/kotelnik/plasma-applet-weather-widget/archive/v${pkgver}.tar.gz")
sha256sums=('cff3c0f83e0d60761fccca1cdf67c02aad81c300a9450f11923c82b3e3dc8969')
2016-01-23 22:15:26 +08:00
prepare() {
cd "${_name}-${pkgver}"
mkdir -p build
}
build() {
cd "${_name}-${pkgver}/build"
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DLIB_INSTALL_DIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
}
package() {
cd "${_name}-${pkgver}"/build
make install DESTDIR="${pkgdir}"
}