#Packager: George Vlahavas pkgname=inkscape pkgver=1.1.2 pkgrel=1gv source=("https://media.inkscape.org/dl/resources/file/inkscape-$pkgver.tar.xz") 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-${pkgver}_* # 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 || exit 1 mkdir -p build cd build cmake \ -DCMAKE_C_FLAGS:STRING="$CFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$CFLAGS" \ -DCMAKE_C_FLAGS_RELEASE:STRING="$CFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$CFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=/usr/lib${LIBDIRSUFFIX} \ -DCMAKE_INSTALL_MANDIR=/usr/man \ -DCMAKE_INSTALL_SYSCONFDIR=/etc \ -DWITH_DBUS=ON \ -DWITH_INTERNAL_2GEOM=ON \ .. make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg # why is this in the wrong place? Let's move it where it will be # found mv $startdir/pkg/usr/lib${LIBDIRSUFFIX}/inkscape/libinkscape_base.so $startdir/pkg/usr/lib${LIBDIRSUFFIX}/ rmdir $startdir/pkg/usr/lib${LIBDIRSUFFIX}/inkscape # while we're at it, move the bash-completion script too mkdir -p $startdir/pkg/etc/bash_completion.d mv $startdir/pkg/usr/share/bash-completion/completions/inkscape $startdir/pkg/etc/bash_completion.d/ rm -rf $startdir/pkg/usr/share/bash-completion }