archrelease: copy trunk to extra-x86_64
[arch-packages.git] / inkscape / trunk / PKGBUILD
blob159cf7840da2ff164e844e70336b7afd4717f1fc
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.1.1
7 _tag='3bf5ae0d25c673abe152dedf4789a2d6f0cc60ff' # git rev-parse INKSCAPE_${pkgver/./_}
8 pkgrel=3
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         'dbus-glib'
17         'double-conversion'
18         'gc'
19         'graphicsmagick'
20         'gsl'
21         'gspell'
22         'gtkmm3'
23         'lcms2'
24         'lib2geom'
25         'libcdr'
26         'libjpeg-turbo'
27         'libvisio'
28         'libxslt'
29         'poppler-glib'
30         'potrace'
31         'python'
32         'ttf-font'
35 optdepends=(
36         'fig2dev: xfig input'
37         'gvfs: import clip art'
38         'pstoedit: latex formulas'
39         'python-lxml: some extensions'
40         'python-numpy: some extensions'
41         'scour: optimized SVG output, some extensions'
42         'texlive-core: latex formulas'
45 #source=("https://media.inkscape.org/dl/resources/file/${pkgname}-${pkgver}.tar.bz2")
46 source=("git+https://gitlab.com/inkscape/inkscape.git#tag=${_tag}"
47         poppler-21.11.0.patch)
48 sha256sums=('SKIP'
49             '76bd1cc64ce7abef0f1758a7f05d9ca9e2cf44506318fb8ae9da029543aa1762')
51 prepare() {
52         cd "${pkgname}"
53         git submodule init
54         git submodule update
56         # https://gitlab.com/inkscape/inkscape/-/merge_requests/3622
57         patch -Np1 -i ../poppler-21.11.0.patch
60 build() {
61         mkdir -p build
62         export PKG_CONFIG_PATH='/usr/lib/imagemagick6/pkgconfig'
63         cmake -H${pkgname} -Bbuild \
64                 -DCMAKE_BUILD_TYPE=Release \
65                 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
66                 -DWITH_DBUS=ON \
68         cmake --build build
71 package() {
72         DESTDIR="${pkgdir}" cmake --build build --target install