void-packages/srcpkgs/inkscape/template

35 lines
1.5 KiB
Bash

# Template file for 'inkscape'
pkgname=inkscape
version=1.0
revision=1
wrksrc="${pkgname}-INKSCAPE_${version//./_}"
build_style=cmake
hostmakedepends="automake pkg-config libtool intltool gettext-devel
glib-devel perl-XML-Parser tar which xz"
makedepends="harfbuzz-devel libsoup-devel gsl-devel pango-devel double-conversion-devel gc-devel libwpd-devel libcdr-devel libvisio-devel poppler-devel libwpd-devel potrace-devel gtkmm-devel gdl-devel gtkspell3-devel aspell-devel libxslt-devel libgomp-devel libwpg-devel poppler-glib-devel"
depends="desktop-file-utils hicolor-icon-theme python3-lxml python3-numpy python3-scour"
short_desc="Vector-based drawing program"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only, LGPL-2.1-or-later"
homepage="http://inkscape.org/"
_extension_rev=7099a364be65e17a76c0d9b7961232788d427d73
distfiles="https://gitlab.com/inkscape/inkscape/-/archive/INKSCAPE_${version//./_}/inkscape-INKSCAPE_${version//./_}.tar.bz2
https://gitlab.com/inkscape/extensions/-/archive/${_extension_rev}/extensions-${_extension_rev}.tar.bz2"
checksum="673a1d8dfff4993917ac560d73ded4cab6edf8360cb97b99703658b14c03031f
11d573e30d4b0c821e9c59a524c9f98b935dcfdad979066cc65fdf111cf116fe"
python_version=3
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
pre_configure() {
rm -r share/extensions || true
cp -r ../extensions-${_extension_rev} share/extensions
case "$XBPS_TARGET_MACHINE" in
*-musl) vsed -e "/-Werror=format/d" \
-i CMakeScripts/DefineDependsandFlags.cmake ;;
esac
}