# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-applications
maintainer="team/kde <bribbers@disroot.org>"
pkgname=poxml
pkgver=25.04.2
pkgrel=0
# armhf blocked by qt6-qtdeclarative -> kdoctools
arch="all !armhf"
url="https://www.kde.org/applications/development/"
pkgdesc="Translates DocBook XML files using gettext po files"
license="GPL-2.0-or-later AND GFDL-1.2-only"
makedepends="
	extra-cmake-modules
	gettext-dev
	kdoctools-dev
	qt6-qtbase-dev
	samurai
	"
subpackages="$pkgname-doc"
_repo_url="https://invent.kde.org/sdk/poxml.git"
source="https://download.kde.org/stable/release-service/$pkgver/src/poxml-$pkgver.tar.xz"

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

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

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

sha512sums="
22357d5dc95c5b9074840bdecc985a6f606495ca0efb04114c71a16da577b85b702eb3f7131f6df3a7edb8bf636d4febc1a6d6a0c0f45a73eab25fbcbee7e6d9  poxml-25.04.2.tar.xz
"
