# Maintainer: Natanael Copa pkgname=inkscape pkgver=0.92.5 pkgrel=0 pkgdesc="A vector-based drawing program - svg compliant" url="https://inkscape.org/" arch="all" license="GPL-2.0-or-later AND LGPL-2.1-or-later" makedepends=" boost-dev cmake dbus-dev gc-dev gsl-dev gtkmm-dev gtkspell-dev imagemagick6-dev lcms-dev libtool libxml2-dev libxslt-dev poppler-dev popt-dev tar " depends="desktop-file-utils" checkdepends="bash py3-lxml py3-numpy>=1.14.3-r1" subpackages="$pkgname-doc $pkgname-lang $pkgname-view" source="https://media.inkscape.org/dl/resources/file/inkscape-$pkgver.tar.bz2 fix-python.patch " options="!check" # cxxtest hangs at least on x86_64 build() { export CXXFLAGS="$CXXFLAGS -std=c++11" if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DBUILD_STATIC_LIBS=False \ -DBUILD_TESTS=ON \ -DWITH_GNOME_VFS=OFF \ $CMAKE_CROSSOPTS . make -C build } check() { PATH="$PATH:$PWD" make -C src check } package() { DESTDIR="$pkgdir" make -C build install } view() { pkgdesc="Viewing program for SVG files" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/inkview "$subpkgdir"/usr/bin } doc() { default_doc mkdir -p "$subpkgdir"/usr/share/inkscape mv "$pkgdir"/usr/share/inkscape/examples \ "$pkgdir"/usr/share/inkscape/tutorials \ "$subpkgdir"/usr/share/inkscape } sha512sums="cad2b0f66ce828ad40b1caf740e23d7d7b285b615899601f7584edca50b758d9453774cb7f20f9cab87c2a44ec0bdcc39f350351edf6b2221f8bd2de4049535c inkscape-0.92.5.tar.bz2 6b6d17260847973ae385cc735176ec3fc666e43f244df60eacfc8ebeec05042b8b7063e9f8d93bf6bd7cfa16e5e9d48cdae66b51cc23df5e77cc2a27238ec6a4 fix-python.patch"