aboutsummaryrefslogtreecommitdiffstats
path: root/main/inkscape/APKBUILD
blob: af012fa2005b2f758a0f64f18de93be465b4425e (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=inkscape
pkgver=0.48.0
pkgrel=2
pkgdesc="A vector-based drawing program - svg compliant"
url="http://inkscape.sourceforge.net/"
arch="x86 x86_64"
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
"
depends="desktop-file-utils"
install=
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
	inkscape-0.48.0-poppler.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 --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
}
md5sums="bb94543b813157d83281657a89465d46  inkscape-0.48.0.tar.gz
fa6eae3c40bf4560ee8ab7cb843b19da  inkscape-0.48.0-poppler.patch"