# Maintainer: Natanael Copa pkgname=inkscape pkgver=0.92.4 pkgrel=6 pkgdesc="A vector-based drawing program - svg compliant" url="https://inkscape.org/" arch="all" license="GPL LGPL" makedepends=" autoconf automake boost-dev dbus-dev gc-dev gsl-dev gtkmm-dev gtkspell-dev imagemagick-dev lcms-dev libtool libxml2-dev libxslt-dev poppler-dev popt-dev tar " depends="desktop-file-utils" checkdepends="bash py-lxml py-numpy>=1.14.3-r1" subpackages="$pkgname-doc $pkgname-lang $pkgname-view" source="https://launchpad.net/inkscape/${pkgver%.*}.x/$pkgver/+download/inkscape-$pkgver.tar.bz2 poppler-082.patch " options="!check" # cxxtest hangs at least on x86_64 prepare() { default_prepare ./autogen.sh #aclocal -I m4 && autoconf && automake -a && autoheader # we enable fortify source by default so to silence warnings we # remove it from cmdline sed -i -e '/CPPFLAGS=/s/-D_FORTIFY_SOURCE=2//' configure sed -i 's| abs(| std::fabs(|g' src/ui/tools/flood-tool.cpp # Fix build with poppler 0.71 sed -e 's|gTrue|true|g' -e 's|gFalse|false|g' -e 's|GBool|bool|g' -i src/extension/internal/pdfinput/pdf-parser.* # Fix build with poppler 0.72 sed -e 's|getCString|c_str|g' -i src/extension/internal/pdfinput/* # Fix build with poppler 0.76 sed -e 's|new Lexer(xref, obj)|obj|g' -i src/extension/internal/pdfinput/pdf-parser.cpp } build() { CXXFLAGS="$CXXFLAGS -std=c++11" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --without-gnome-vfs \ --enable-lcms \ --enable-poppler-cairo \ --enable-dbusapi \ --disable-strict-build make } check() { PATH="$PATH:$PWD" make -C src check } package() { make DESTDIR="$pkgdir" 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="b9034605a79cd8aea808edf42e284819951ae1ea67778f0922f4c10224e94aca6c844acbc2294625773f0a7047d4e32ccdada876238a792a2c17db172c88e120 inkscape-0.92.4.tar.bz2 adf360e99aaf2635a227bd3b59e03db688eef4713858cfbae2f02ed6368d4314cd490f53da3126555d6fc9a2b28072137c79169c18515331acd83ca643287432 poppler-082.patch"