db-move: moved polari from [testing] to [extra] (x86_64)
[arch-packages.git] / inkscape / trunk / PKGBUILD
blobe602730fab6fb4f6da04bd985cb651ce2c28f6a7
1 # Maintainer: Gaetan Bisson <bisson@archlinux.org>
2 # Contributor: Tobias Kieslich <tobias@justdreams.de>
3 # Contributor: tobias <tobias@archlinux.org>
5 pkgname=inkscape
6 pkgver=1.2.2
7 _tag='b0a8486541ac36327488da641d58a86bee2f07ad' # git rev-parse INKSCAPE_${pkgver/./_}
8 pkgrel=6
9 pkgdesc='Professional vector graphics editor'
10 url='https://inkscape.org/'
11 license=('GPL' 'LGPL')
12 arch=('x86_64')
13 makedepends=('cmake' 'boost' 'git')
15 depends=(
16         'boost-libs'
17         'dbus-glib'
18         'double-conversion'
19         'gc'
20         'graphicsmagick'
21         'gsl'
22         'gspell'
23         'gtkmm3'
24         'lcms2'
25         'lib2geom'
26         'libcdr'
27         'libjpeg-turbo'
28         'libsoup'
29         'libvisio'
30         'libxslt'
31         'poppler-glib'
32         'potrace'
33         'python'
34         'python-cssselect'
35         'python-lxml'
36         'python-numpy'
37         'ttf-font'
40 optdepends=(
41         'fig2dev: xfig input'
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')
57 sha256sums=('SKIP'
58             'SKIP'
59             'SKIP'
60             'SKIP'
61             'SKIP'
62             'SKIP'
63             'SKIP'
64             'SKIP')
66 _backports=(
69 prepare() {
70         cd "${pkgname}"
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 )
83         local _c
84         for _c in "${_backports[@]}"; do
85                 git log --oneline -1 "${_c}"
86                 git cherry-pick -n "${_c}"
87         done
90 build() {
91         mkdir -p build
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 \
96                 -DWITH_DBUS=ON \
98         cmake --build build
101 package() {
102         DESTDIR="${pkgdir}" cmake --build build --target install