blob: 5c29ac5da67880452f9606bf5d0300307b6be480 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=goffice
pkgver=0.10.1
pkgrel=0
_maj=${pkgver%%.*}
_min=${pkgver#${_maj}.}
_min=${_min%%.*}
pkgdesc="A library of document-centric objects and utilities built on top of GLib and Gtk+"
url="http://www.gnome.org"
arch="all"
license="GPL"
depends_dev="glib-dev libgsf-dev cairo-dev libxml2-dev gtk+3.0-dev librsvg-dev"
makedepends="$depends_dev intltool gtk+-dev autoconf automake libtool gtk-doc"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/$_maj.$_min/$pkgname-$pkgver.tar.xz
localedir.patch
cspline.patch"
prepare() {
cd "$srcdir"/$pkgname-$pkgver
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
libtoolize --force && aclocal && autoconf && automake
}
build() {
cd "$srcdir"/$pkgname-$pkgver
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--without-gconf \
--disable-static \
|| return 1
make || return 1
}
package() {
cd "$srcdir"/$pkgname-$pkgver
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la "$pkgdir"/usr/lib/goffice/*/plugins/*/*.la
}
md5sums="90fd17c6fe205b779571e00d9b0b4727 goffice-0.10.1.tar.xz
0d9a3666263a57c43574b89b638a6503 localedir.patch
819ea03fb7dda007038b0e1834e168b9 cspline.patch"
sha256sums="5c38f4e81e874cc8e89481b080f77c47c72bfd6fe2526f4fc2ef87c17f96cad0 goffice-0.10.1.tar.xz
05bfe0446d29ae7dd443600a58d172d1bb4f3d1d24886e785dfcc108c2d0e8ce localedir.patch
eac82c73e7f11eaf484d5978b91dd748532c71615acf860564d6a35196d9b686 cspline.patch"
sha512sums="057611dd0ce940e68962595ec157d142e3d96541e6ff9f880e1e277c58183001301dcaef7b7438ee1e9830497482cde69ce0ec3f6068af2a7327e6a3b6522e2c goffice-0.10.1.tar.xz
4e1138f1ec2e4f2d1eb85df653542195aa9caf512c759c54f6b275750a819d9684f590e0c8c01203050c1b3901f57ac6e113649f05ddc09b4d782307fd4e58d6 localedir.patch
33d027287268c4b0997d44bd208d00c29a927eb32c87c9b9f370ce590611de49a423e733086d977e97fff6a1297e435f01c361d5b143c4b9533ed2a6b98aaf5d cspline.patch"
|