#Maintainer: Dimitris Tzemos pkgname=inkscape pkgver=1.1 pkgrel=5dj source=("https://media.inkscape.org/dl/resources/file/inkscape-1.1.tar.xz" "poppler-21.11.0.patch") docs=("AUTHORS" "COPYING*" "INSTALL" "NEWS" "README*" "TRANSLATORS" "doc/*") url=http://www.inkscape.org/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "inkscape (an Open Source vector graphics editor)" "Inkscape is an Open Source vector graphics editor, with capabilities" "similar to Illustrator, CorelDraw, or Xara X, using the W3C standard" "Scalable Vector Graphics (SVG) file format. Inkscape supports many" "advanced SVG features (markers, clones, alpha blending, etc.) and" "great care is taken in designing a streamlined interface. It is very" "easy to edit nodes, perform complex path operations, trace bitmaps and" "much more. We also aim to maintain a thriving user and developer" "community by using open, community-oriented development." ) build() { cd $startdir/src/inkscape-1.1_2021-05-24_c4e8f9ed74/ # https://bugs.launchpad.net/inkscape/+bug/314381 # a couple of files have executable bits set, # despite not being executable find . -name '*.cpp' | xargs chmod -x find . -name '*.h' | xargs chmod -x # Fix end of line encodings dos2unix -k -q share/extensions/*.py # https://gitlab.com/inkscape/inkscape/-/merge_requests/3622 patch -Np1 -i ../poppler-21.11.0.patch || return 1 mkdir -p build cd build cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=/usr/lib${LIBDIRSUFFIX} \ -DCMAKE_INSTALL_MANDIR=/usr/man \ -DCMAKE_INSTALL_SYSCONFDIR=/etc \ -DBUILD_SHARED_LIBS=ON \ -DWITH_DBUS=ON \ -DWITH_GRAPHICS_MAGICK=ON \ -DWITH_IMAGE_MAGICK=OFF \ -DWITH_INTERNAL_2GEOM=ON \ .. make || return 1 make install DESTDIR=$startdir/pkg mv $startdir/pkg/usr/lib${LIBDIRSUFFIX}/inkscape/libinkscape_base.so $startdir/pkg/usr/lib${LIBDIRSUFFIX}/ rm -rf $startdir/pkg/usr/lib${LIBDIRSUFFIX}/inkscape cd .. }