summaryrefslogtreecommitdiffstats
path: root/main/inkscape/APKBUILD
blob: d8c5f2452fdab06c4949545a4b480fc31fc514d8 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=inkscape
pkgver=0.47
pkgrel=1
pkgdesc="A vector-based drawing program - svg compliant"
url="http://inkscape.sourceforge.net/"
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
"
depends="desktop-file-utils"
install=
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
	50-poppler-API.patch"

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

prepare() {
	cd "$_builddir"
	patch -p1 -i "$srcdir"/50-poppler-API.patch || return 1
}

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="916c85b501bcfb0ae61fcf7318f36348  inkscape-0.47.tar.gz
b447272c9b282b49e86dca24c2581065  50-poppler-API.patch"