void-packages/srcpkgs/kdoctools/template
2018-02-22 01:32:35 +01:00

31 lines
1.1 KiB
Bash

# Template file for 'kdoctools'
pkgname=kdoctools
version=5.43.0
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF"
hostmakedepends="extra-cmake-modules perl perl-URI"
makedepends="ki18n-devel karchive-devel libxml2-devel libxslt-devel docbook-xml docbook-xsl"
depends="docbook-xml docbook-xsl"
short_desc="KDE Create documentation from DocBook"
maintainer="Denis Revin <denis.revin@gmail.com>"
license="LGPL-2"
homepage="https://projects.kde.org/projects/frameworks/kdoctools"
distfiles="http://download.kde.org/stable/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=50061c842c15be2b53fd49550c818be3468469b260eda7b974ee846b4c7091d2
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-qmake python kdoctools-devel"
configure_args+=" -DMEINPROC5_EXECUTABLE=/usr/bin/meinproc5"
configure_args+=" -DCHECKXML5_EXECUTABLE=/usr/bin/checkXML5"
configure_args+=" -DDOCBOOKL10NHELPER_EXECUTABLE=/usr/bin/docbookl10nhelper"
fi
kdoctools-devel_package() {
short_desc+=" - development"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/lib/cmake
vbin build/bin/docbookl10nhelper
}
}