aboutsummaryrefslogtreecommitdiffstats
path: root/main/inkscape/APKBUILD
blob: f51d3b273275184fc6c7fda7603b84ed61454414 (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
81
82
83
84
85
86
87
88
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=inkscape
pkgver=0.48.5
pkgrel=3
pkgdesc="A vector-based drawing program - svg compliant"
url="http://inkscape.sourceforge.net/"
arch="all"
license="GPL LGPL"
makedepends="
poppler-dev
imagemagick-dev
gtkspell-dev
gc-dev
gtkmm-dev
libxslt-dev
gsl-dev
py-xml
popt-dev
lcms-dev
libxml2-dev
boost-dev
autoconf automake
tar
"
depends="desktop-file-utils"
install=
subpackages="$pkgname-doc $pkgname-lang $pkgname-view"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
	automake.patch
	poppler-0.29.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg "$i"; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	aclocal -I m4 && autoconf && automake -a && autoheader
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-python \
		--with-perl \
		--without-gnome-vfs \
		--with-xft \
		--enable-lcms \
		--enable-poppler-cairo \
		--disable-dependency-tracking \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

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
}
md5sums="4e25b665ab40506955fb520aaa4e0d8f  inkscape-0.48.5.tar.gz
f212448d60a2182611071e40d247da06  automake.patch
682fd46194eb9f1cffbb1e0815e4b29e  poppler-0.29.patch"
sha256sums="ff5194f78057ab24234ed71b8e7aa227d4847d42166c6d44391efa86f3caf130  inkscape-0.48.5.tar.gz
4c21350f16032615ff98096a1cd7bf83ec3a55f8df4f3ed4ea356d47f9df6a78  automake.patch
33a5cf1deb60984e1d1ab53358fe5cb29de031e2301d6c48d70234610a2a98e1  poppler-0.29.patch"
sha512sums="dd62a3b7d1b6875f83f3ec88646c1576735b7d359f75722f1ad6204530370d45256de54781b9f51f97aed32f19e23d7bee059339d398efbff01169f66d982818  inkscape-0.48.5.tar.gz
fab98a525a3343eda7c8e8ce59ce9a8f977c1b8edea07870cc4f4b23fc0fd452792b39f2a87cebb5be110e2b82cf95bc871be9d0f3c1a764d6ded86e218e1537  automake.patch
588038877a84fa8edfed953631ef202b75b599ee27ef3725ff0df074fca34f725803e831a564c8308073d36e2aa32835c3b09f40d7ca0c45b85d9e3bed9be0d8  poppler-0.29.patch"