aboutsummaryrefslogtreecommitdiffstats
path: root/main/inkscape/APKBUILD
blob: c37ae58c800e888feda469d751a89663a4a81bf1 (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.4
pkgrel=8
pkgdesc="A vector-based drawing program - svg compliant"
url="http://inkscape.sourceforge.net/"
arch="all"
license="GPL LGPL"
makedepends="
poppler-gtk-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
	inkscape-0.48.4-spuriouscomma.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="2c7149e877609f3f7e7a9d4e6f510d2b  inkscape-0.48.4.tar.gz
f212448d60a2182611071e40d247da06  automake.patch
a78af90abbf8629636f726dda30a128c  inkscape-0.48.4-spuriouscomma.patch"
sha256sums="6e19ee087a79012a0cec9c6e6d194357e256b7ec538536efcbdf74fdf2d31d5a  inkscape-0.48.4.tar.gz
4c21350f16032615ff98096a1cd7bf83ec3a55f8df4f3ed4ea356d47f9df6a78  automake.patch
6d7ed69e538f6e1cb1762a144a852ff39c8781e5dba5c4c515e65ce0b7b17066  inkscape-0.48.4-spuriouscomma.patch"
sha512sums="bb9ad17304a335d6b0eb1e9e03833a4f510c24851f91b1f8964a17b092f168ebd37f1782eafc74ee3056e8f3db55e60e1148bb3411058a2c6099f5ff49fbade8  inkscape-0.48.4.tar.gz
fab98a525a3343eda7c8e8ce59ce9a8f977c1b8edea07870cc4f4b23fc0fd452792b39f2a87cebb5be110e2b82cf95bc871be9d0f3c1a764d6ded86e218e1537  automake.patch
5bcdff5f67a8fa2e685ab9207c9657fdb43821b6706345264fdaccbc84a89f8157144d4f854ad9d203c2679f76aa4e94136bb13fd011404dd678699ee1044948  inkscape-0.48.4-spuriouscomma.patch"