summaryrefslogtreecommitdiff
path: root/pcr/inkscape-gtk3/PKGBUILD
blob: 7b0768b882600ffa5c7f19ac8bc79ec3465d9461 (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
# $Id: PKGBUILD 272749 2016-07-31 09:21:16Z bisson $
# Maintainer (Arch): Gaetan Bisson <bisson@archlinux.org>
# Contributor (Arch): Tobias Kieslich <tobias@justdreams.de>
# Contributor (Arch): tobias <tobias@archlinux.org>
# Maintainer: Márcio Silva <coadde@parabola.nu>

# It's experimental and unstable package (run only with X11)

_pkgname=inkscape
pkgname=inkscape-gtk3
pkgver=0.91
pkgrel=19
pkgdesc='Professional vector graphics editor with GTK3 and Python3'
url='https://inkscape.org/'
license=('GPL' 'LGPL')
arch=('i686' 'x86_64' 'armv7h')
makedepends=('boost' 'intltool')
depends=('gdl' 'gnome-vfs' 'gsl' 'gtkmm3' 'gtkspell3' 'imagemagick' 'libcdr' 'libexif'
         'libvisio' 'libxslt' 'poppler-glib' 'popt' 'python' 'ttf-dejavu')
optdepends=('gvfs: import clip art'
            'pstoedit: latex formulas'
            'texlive-core: latex formulas'
            'python2-numpy: some extensions'
            'python2-lxml: some extensions and filters'
            'uniconvertor: reading/writing to some proprietary formats')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("https://inkscape.org/en/gallery/item/3860/inkscape-0.91.tar.bz2"
        'http://bazaar.launchpad.net/~inkscape.dev/inkscape/RELEASE_0_91_BRANCH/download/head:/markers_strokepaint.-20091128124040-aej0x7yhxng1m6ly-8339/markers_strokepaint.inx.disabled')
sha1sums=('9941ee467af570ac71a70f965cd9c48d4993b8f3'
          'f61909a58c185ed9249b19f71242af2edd32ef9a')

#prepare() {
#	cd "${srcdir}/${_pkgname}-${pkgver}"
#	# sed -i 's|/usr/bin/python\>|/usr/bin/python2|g' cxxtest/*.py
#	# sed -i 's|/usr/bin/env python\>|/usr/bin/env python2|g' share/*/{test/,}*.py
#	# sed -i 's|"python" },|"python2" },|g' src/extension/implementation/script.cpp
#	# sed -i 's|python -c|python2 -c|g' configure share/extensions/uniconv*.py
#	# sed -i 's|"python"|"python2"|g' src/main.cpp
#
#	# FS#43744
#	mv ../markers_strokepaint.inx.disabled share/extensions/markers_strokepaint.inx
#}

build() {
	cd "${srcdir}/${_pkgname}-${pkgver}"

	# glibmm 2.46 uses C++11 features
	CXXFLAGS+=' -std=c++11'

	./configure \
		--prefix=/usr \
		--with-python \
		--with-perl \
		--enable-lcms \
		--enable-poppler-cairo \
		--disable-strict-build \
		--disable-dependency-tracking \
		--enable-dbusapi \
		--enable-gtk3-experimental
	make
}

package() {
	cd "${srcdir}/${_pkgname}-${pkgver}"
	make DESTDIR="${pkgdir}" install
}