# Maintainer: Natanael Copa pkgname=inkscape pkgver=0.91 pkgrel=16 pkgdesc="A vector-based drawing program - svg compliant" url="http://inkscape.sourceforge.net/" arch="all" license="GPL LGPL" makedepends=" autoconf automake boost-dev dbus-dev gc-dev gsl-dev gtkmm-dev gtkspell-dev imagemagick-dev lcms-dev libxml2-dev libxslt-dev poppler-dev popt-dev tar " depends="desktop-file-utils" checkdepends="bash" subpackages="$pkgname-doc $pkgname-lang $pkgname-view" source="https://launchpad.net/inkscape/$pkgver.x/$pkgver/+download/inkscape-$pkgver.tar.bz2 fix-crash.patch " builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$builddir" default_prepare #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 || return 1 } build() { cd "$builddir" 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 \ || return 1 make || return 1 } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 } 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="3778ef7d4a1c759a7afc093e55eefb69a78dcb60332655cc8ab8c481f54a3e6550df6070178390eb08588245531906b8bef33301f0765a4d28d6c7506fcf3bc7 inkscape-0.91.tar.bz2 d91a72c4363a5cd736593478580ef6175f6a7db0b601bf3a4af5c97c4bd1c295feb9e31365d5185be4d9cf4fddd642821a43337d914d6c257bef6c450d7ef70a fix-crash.patch"