void-packages/srcpkgs/qtikz/template

23 lines
745 B
Bash

# Template file for 'qtikz'
pkgname=qtikz
version=0.13.2
revision=1
build_style=qmake
hostmakedepends="qt5-qmake pkg-config qt5-plugin-sqlite qt5-host-tools
qt5-tools"
makedepends="poppler-qt5-devel qt5-devel"
short_desc="Editor for graphics set in TikZ"
maintainer="Piraty <mail@piraty.dev>"
license="GPL-2.0-or-later"
homepage="http://www.hackenberger.at/blog/ktikz-editor-for-the-tikz-language/"
distfiles="https://github.com/fhackenberger/ktikz/archive/${version}.tar.gz"
checksum=1b7f5b7a8daacea68b5a93c1e5a946c9ba9f776b8708f11ca047e591a446f300
post_patch() {
vsed -e '/include.*QPainter/a #include <QtGui/QPainterPath>' \
-i app/tikzeditor.cpp
# fix version
vsed -i qtikz.pro \
-e "s/APPVERSION = 0.12/APPVERSION = ${version}/"
}