# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
# Contributor: Zachary Lee Andrews <zcrayfish@gmail.com>
pkgname=lxqt-menu-data
pkgver=2.1.0
pkgrel=1
pkgdesc="Freedesktop.org desktop menus for LXQt"
url="https://lxqt-project.org/"
arch="noarch"
license="GPL-2.0-or-later"
makedepends="
	perl
	cmake
	samurai
	lxqt-build-tools
	qt6-qttools-dev
	"
options="!check" # No testsuite
source="https://github.com/lxqt/lxqt-menu-data/releases/download/$pkgver/lxqt-menu-data-$pkgver.tar.xz"

replaces="lxmenu-data"

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

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

sha512sums="
3546fad2ae1ce571c93a34328912c5ffa95e7107197e74ac691b4f721130c69449166d28c57aeba5429593d28d581643ae9811c811c92f46b8c858dfd7997b1f  lxqt-menu-data-2.1.0.tar.xz
"
