aboutsummaryrefslogtreecommitdiffstats
path: root/community/inkscape/APKBUILD
blob: 5619f8c51b2efeeaaf1e5add6542bdd08f181b59 (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
77
78
79
80
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=inkscape
pkgver=0.92.3
pkgrel=0
pkgdesc="A vector-based drawing program - svg compliant"
url="https://inkscape.org/"
arch="all"
license="GPL LGPL"
makedepends="
	autoconf
	automake
	boost-dev
	dbus-dev
	gc-dev
	gsl-dev
	gtkmm-dev
	gtkspell-dev
	imagemagick-dev
	lcms-dev
	libtool
	libxml2-dev
	libxslt-dev
	poppler-dev
	popt-dev
	tar
	"
depends="desktop-file-utils"
checkdepends="bash py-lxml py-numpy>=1.14.3-r1"
subpackages="$pkgname-doc $pkgname-lang $pkgname-view"
source="https://launchpad.net/inkscape/${pkgver%.*}.x/$pkgver/+download/inkscape-$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	./autogen.sh
	#aclocal -I m4 && autoconf && automake -a && autoheader
	# we enable fortify source by default so to silence warnings we
	# remove it from cmdline
	sed -i -e '/CPPFLAGS=/s/-D_FORTIFY_SOURCE=2//' configure
}

build() {
	cd "$builddir"
	CXXFLAGS="$CXXFLAGS -std=c++11" ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--without-gnome-vfs \
		--enable-lcms \
		--enable-poppler-cairo \
		--enable-dbusapi \
		--disable-strict-build
	make
}

check() {
	cd "$builddir"
	PATH="$PATH:$PWD" make -C src check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

view() {
	pkgdesc="Viewing program for SVG files"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/inkview "$subpkgdir"/usr/bin
}

doc() {
	default_doc
	mkdir -p "$subpkgdir"/usr/share/inkscape
	mv "$pkgdir"/usr/share/inkscape/examples \
		"$pkgdir"/usr/share/inkscape/tutorials \
		"$subpkgdir"/usr/share/inkscape
}

sha512sums="af3c0f672a108e583f3c92cde1451b3f1f5319c1669891005c230e73b3485aa8951af6d7b21c7ccd9e4acbca8eaa5a3bb61ae1d828e81885bc7b61a8ae933687  inkscape-0.92.3.tar.bz2"