maintainer="Bart Ribbers <bribbers@disroot.org>"
pkgname=mapplauncherd
pkgver=4.2.15
pkgrel=0
pkgdesc="A daemon that helps to launch applications faster"
url="https://github.com/sailfishos/mapplauncherd"
arch="all"
license="LGPL-2.1-only"
depends_dev="
	dbus-dev
	elogind-dev
	glib-dev
	libcap-dev
	ninja
	"
makedepends="$depends_dev
	extra-cmake-modules
	doxygen
	"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/sailfishos/mapplauncherd/archive/$pkgver/mapplauncherd-$pkgver.tar.gz
	gcc14.patch
	"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DINSTALL_SYSTEMD_UNITS=OFF
	cmake --build build
	cmake --build build --target doc
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
76a3254e9965ccd75da36d838de91b133b2d26fff67cfae8af21c0fd447f9cc7dcc8762b6152d9af05152407b45ea30da7efbd367a180bef463946d0483cf07d  mapplauncherd-4.2.15.tar.gz
6ff7ac9859715dac9276a304f306c12c3af022e2651fd68676fd916caef92743c84811d52451fbd71733c516c7a7f671cecfdbdcbb82f6fa815e123bb7419af2  gcc14.patch
"
