void-packages/srcpkgs/qxmledit/template

38 lines
1.3 KiB
Bash

# Template file for 'qxmledit'
pkgname=qxmledit
version=0.9.17
revision=1
build_style=qmake
configure_args="QXMLEDIT_INST_DATA_DIR=/usr/share/qxmledit
QXMLEDIT_INST_DIR=/usr/bin
QXMLEDIT_INST_DOC_DIR=/usr/share/doc/qxmledit
QXMLEDIT_INST_LIB_DIR=/usr/lib
QXMLEDIT_INST_TRANSLATIONS_DIR=/usr/share/qxmledit/translations
QXMLEDIT_INST_INCLUDE_DIR=/usr/include/qxmledit"
hostmakedepends="qt5-qmake qt5-host-tools"
makedepends="glu-devel qt5-devel qt5-declarative-devel qt5-scxml-devel
qt5-script-devel qt5-svg-devel qt5-xmlpatterns-devel"
short_desc="Simple XML Editor"
maintainer="newbluemoon <blaumolch@mailbox.org>"
license="LGPL-2.0-or-later, Zlib"
homepage="https://qxmledit.org/"
distfiles="https://github.com/lbellonda/qxmledit/archive/${version}.tar.gz"
checksum=29229ef470b32539db59c0308f2cc9f8e3ed7fd9d8b0cd1f49b44f5731a7e1b5
post_install() {
vlicense external/qwtplot3d/license.txt
vinstall install_scripts/environment/desktop/QXmlEdit.appdata.xml 644 usr/share/appdata/
vinstall install_scripts/environment/desktop/QXmlEdit.desktop 644 usr/share/applications/
vinstall src/images/icon.svg 644 usr/share/pixmaps qxmledit.svg
vman install_scripts/environment/man/qxmledit.1
}
qxmledit-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}