blob: ae2dcc897be849833641d06407147a24a7af76d9 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=inkscape
pkgver=0.48.5
pkgrel=0
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
"
_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"
sha256sums="ff5194f78057ab24234ed71b8e7aa227d4847d42166c6d44391efa86f3caf130 inkscape-0.48.5.tar.gz
4c21350f16032615ff98096a1cd7bf83ec3a55f8df4f3ed4ea356d47f9df6a78 automake.patch"
sha512sums="dd62a3b7d1b6875f83f3ec88646c1576735b7d359f75722f1ad6204530370d45256de54781b9f51f97aed32f19e23d7bee059339d398efbff01169f66d982818 inkscape-0.48.5.tar.gz
fab98a525a3343eda7c8e8ce59ce9a8f977c1b8edea07870cc4f4b23fc0fd452792b39f2a87cebb5be110e2b82cf95bc871be9d0f3c1a764d6ded86e218e1537 automake.patch"
|