blob: 82016f7caec6ad65729bf2de17f512473d6202bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
#!/bin/bash
# Contributor: Splex
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
# Co-Maintainer: bartus <arch-user-repo@bartus.33mail.com>
pkgname=inkscape-git
pkgver=1.2.alpha.r714.gd6f5aea0b3
pkgrel=1
epoch=5
pkgdesc="An Open Source vector graphics editor, using SVG file format, from git master"
url="https://gitlab.com/inkscape"
license=('GPL' 'LGPL')
arch=('i686' 'x86_64')
makedepends=('cmake' 'boost' 'git' 'ninja')
depends=(
'dbus-glib'
'double-conversion'
'gc'
'graphicsmagick'
'gsl'
'gspell'
'gtkmm3'
'lcms2'
'lib2geom'
'libcdr'
'libjpeg-turbo'
'libmagick6'
'libvisio'
'libxslt'
'poppler-glib'
'potrace'
'python'
'python-lxml'
'python-numpy'
'ttf-font'
)
optdepends=(
'fig2dev: xfig input'
'gvfs: import clip art'
'pstoedit: latex formulas'
'scour: optimized SVG output, some extensions'
'texlive-core: latex formulas'
)
provides=('inkscape')
conflicts=('inkscape')
source=("inkscape.git::git+$url/inkscape.git"
"extensions.git::git+$url/extensions.git"
"lib2geom.git::git+$url/lib2geom.git")
sha1sums=('SKIP'
'SKIP'
'SKIP')
_gitname="inkscape.git"
prepare() {
cd "$_gitname"
git config submodule.share/extensions.url "${srcdir}"/extensions.git
git config submodule.src/3rdparty/2geom.url "${srcdir}"/lib2geom.git
git -c protocol.file.allow=always submodule update --init --remote
}
pkgver() {
cd "$_gitname"
git describe --long --tags| sed 's/^INKSCAPE_//;s/.*/\L&/;s/\([^-]*-g\)/r\1/;s/[-_]/./g'
}
build() {
cmake -S "${_gitname}" -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RELEASE
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}
|