APKBUILD 1.08 KB
Newer Older
1 2 3 4
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasma-applet-weather-widget
pkgver=1.6.10
5
pkgrel=2
6
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
7 8 9
url="https://www.linux-apps.com/content/show.php/Weather+Widget?content=169572"
pkgdesc="Plasmoid for showing weather information from yr.no and Open Weather Map servers"
license="GPL-2.0-only"
10
depends="qt5-qtxmlpatterns qt5-qtdeclarative"
11
makedepends="extra-cmake-modules qt5-qtbase-dev plasma-framework-dev"
12
source="$pkgname-$pkgver.tar.gz::https://github.com/kotelnik/plasma-applet-weather-widget/archive/v$pkgver.tar.gz"
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
subpackages="$pkgname-lang"
options="!check" # No tests

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	make
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" make install
}

sha512sums="5db4c2e426b9b8296b70ec4edf5fc2dbc5e8056f66327569008a77b05201896ed23039aae063807726376e203d637053884bfeeac78c59c519b7fc5685797331  plasma-applet-weather-widget-1.6.10.tar.gz"