summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 406d357858d8cb7bb0f4c3e9e6b2793d628e94c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: kikadf <kikadf.01@gmail.com>

pkgname=plasma5-applets-yahoo-weather-widget
pkgver=5.1.1
pkgrel=1
pkgdesc="A simple weather widget that makes use of beloved Yahoo! Weather data"
arch=('any')
url="http://kde-apps.org/content/show.php/Yahoo%21+Weather+Widget?content=164194"
_watch="lynx -dump -listonly "https://github.com/librehat/com.librehat.yahooweather/tags" | sed -n 's|.*archive/v\([5-9].*\).tar.gz|\1|p' | head -1"
license=(GPL)
depends=(plasma-workspace qt5-declarative)
makedepends=(extra-cmake-modules)
source=("https://github.com/librehat/com.librehat.yahooweather/archive/v$pkgver.tar.gz")
md5sums=('5bbba5d11011e93dea8c05d46a9fc9f3')

prepare() {
  cd com.librehat.yahooweather-$pkgver
  mkdir -p build
}

build() {
  cd com.librehat.yahooweather-$pkgver/build
  cmake .. \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
}

package() {
  cd com.librehat.yahooweather-$pkgver/build
  make DESTDIR="$pkgdir" install
}