# Contributor: Aster Boese <asterboese@mailbox.org>
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Luca Weiss <luca@lucaweiss.eu>
pkgname=lomiri-schemas
pkgver=0.1.8
pkgrel=0
pkgdesc="GSettings / AccountsService schema files for Lomiri"
arch="noarch"
url="https://gitlab.com/ubports/development/core/lomiri-schemas"
license="LGPL-2.1-or-later"
makedepends="
	cmake
	cmake-extras
	glib-dev
	intltool
	samurai
	"
source="https://gitlab.com/ubports/development/core/lomiri-schemas/-/archive/$pkgver/lomiri-schemas-$pkgver.tar.gz
	0001-data-schemas-com.lomiri.Shell.gschema.xml.in-Add-log.patch
	"
options="!check" # No tests

build() {
	# FIXME intltool_merge_translations doesn't work with ninja backend
	cmake -B build -G "Unix Makefiles" \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

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

sha512sums="
1f8887ddf93c2e5b13c5ab0634926394d0c4693ab7d9ab2ff3915de68f9be8d05c00744502d18abb252415ef2f0eab5ac09e057d8ed63b0a108f23165e763527  lomiri-schemas-0.1.8.tar.gz
eeea247f51418741fd01676a460f859042db35bbd7fe275cef9838dec58c8c60f1fbb8d1706cf106c1ad5dfdee285c763590a3ee6eaa170307a16afaf3bf8d2f  0001-data-schemas-com.lomiri.Shell.gschema.xml.in-Add-log.patch
"
