# Maintainer: Luca Weiss <luca@lucaweiss.eu>
# Contributor: Aster Boese <asterboese@mailbox.org>
pkgname=lomiri-notifications
pkgver=1.3.1
pkgrel=0
pkgdesc="An implementation of the Free Desktop Notification server for Lomiri"
url="https://gitlab.com/ubports/development/core/lomiri-notifications"
arch="all"
license="GPL-3.0-only"
makedepends="
	cmake
	libqtdbustest
	lomiri-api-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtquickcontrols2-dev
	samurai
	"
source="https://gitlab.com/ubports/development/core/lomiri-notifications/-/archive/$pkgver/lomiri-notifications-$pkgver.tar.gz"
options="!check" # tests fail

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=ON \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

check() {
	ctest --test-dir build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
1aa39a405381bd86c325e4864ee85fe1cc5391d5b0e51b38bdb660fd27c3aeece4802de8c9ad36e5b6f90fdee9f3e64af127303a24d913c9cdff9298108c9248  lomiri-notifications-1.3.1.tar.gz
"
