1 # Maintainer: Gaetan Bisson <bisson@archlinux.org>
2 # Contributor: Tobias Kieslich <tobias@justdreams.de>
3 # Contributor: tobias <tobias@archlinux.org>
7 _tag='b0a8486541ac36327488da641d58a86bee2f07ad' # git rev-parse INKSCAPE_${pkgver/./_}
9 pkgdesc='Professional vector graphics editor'
10 url='https://inkscape.org/'
11 license=('GPL' 'LGPL')
13 makedepends=('cmake' 'boost' 'git')
42 'gvfs: import clip art'
43 'pstoedit: latex formulas'
44 'scour: optimized SVG output, some extensions'
45 'texlive-core: latex formulas'
48 #source=("https://media.inkscape.org/dl/resources/file/${pkgname}-${pkgver}.tar.bz2")
49 source=("git+https://gitlab.com/inkscape/inkscape.git#tag=${_tag}"
50 'inkscape-extensions::git+https://gitlab.com/inkscape/extensions.git'
51 'inkscape-lib2geom::git+https://gitlab.com/inkscape/lib2geom.git'
52 'inkscape-themes::git+https://gitlab.com/inkscape/themes.git'
53 'inkscape-extras-extensions-gcodetools::git+https://gitlab.com/inkscape/extras/extensions-gcodetools.git'
54 'inkscape-extras-extension-manager::git+https://gitlab.com/inkscape/extras/extension-manager.git'
55 'inkscape-extras-inkscape-import-clipart::git+https://gitlab.com/inkscape/extras/inkscape-import-clipart.git'
56 'inkscape-extras-extension-xaml::git+https://gitlab.com/inkscape/extras/extension-xaml.git')
71 git submodule set-url share/extensions ../inkscape-extensions/
72 git submodule set-url src/3rdparty/2geom ../inkscape-lib2geom/
73 git submodule set-url share/themes ../inkscape-themes/
74 git -c protocol.file.allow=always submodule update --init
76 ( cd share/extensions/
77 git submodule set-url other/gcodetools ../inkscape-extras-extensions-gcodetools/
78 git submodule set-url other/inkman ../inkscape-extras-extension-manager/
79 git submodule set-url other/clipart ../inkscape-extras-inkscape-import-clipart/
80 git submodule set-url other/extension-xaml ../inkscape-extras-extension-xaml/
81 git -c protocol.file.allow=always submodule update --init )
84 for _c in "${_backports[@]}"; do
85 git log --oneline -1 "${_c}"
86 git cherry-pick -n "${_c}"
92 export PKG_CONFIG_PATH='/usr/lib/imagemagick6/pkgconfig'
93 cmake -H${pkgname} -Bbuild \
94 -DCMAKE_BUILD_TYPE=Release \
95 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
102 DESTDIR="${pkgdir}" cmake --build build --target install