void-packages/srcpkgs/tikzit/template

27 lines
994 B
Bash

# Template file for 'tikzit'
pkgname=tikzit
version=2.1.6
revision=2
build_style=cmake
hostmakedepends="qt5-host-tools qt5-qmake extra-cmake-modules flex bison"
makedepends="qt5-devel poppler-qt5-devel poppler-cpp-devel"
short_desc="Pgf/TikZ diagram editor"
maintainer="Piraty <mail@piraty.dev>"
license="GPL-3.0-or-later"
homepage="https://tikzit.github.io/"
distfiles="https://github.com/tikzit/tikzit/archive/refs/tags/v${version}.tar.gz"
checksum=40e160f654a25a3a36d6a5361eef71a51f9d3b5eec3b42dd9246ec26402149d1
post_install() {
vman share/man/man1/tikzit.1
vinstall share/applications/tikzit.desktop 755 usr/share/applications
for _i in 16 32 64 128 256 512 1024; do
vinstall share/icons/hicolor/${_i}x${_i}/apps/tikzit.png 644 usr/share/icons/hicolor/${_i}x${_i}/apps
done
vinstall share/icons/hicolor/scalable/apps/tikzit.svg 644 usr/share/icons/hicolor/scalable/apps/
vmkdir usr/share/mime/packages
vcopy share/mime/packages/user-tikz-document.xml usr/share/mime/packages
}