summaryrefslogtreecommitdiffstats
path: root/main/libgsf/APKBUILD
blob: 9d453383c0fb8c5f9fd80d92ee6ed279ccba2284 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgsf
pkgver=1.14.26
pkgrel=0
pkgdesc="The GNOME Structured File Library is a utility library for reading and writing structured file formats."
url="http://www.gnome.org/"
arch="all"
license="GPL LGPL"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends=
makedepends="libxml2-dev glib-dev bzip2-dev intltool python zlib-dev"
source="http://ftp.gnome.org/pub/GNOME/sources/$pkgname/1.14/$pkgname-$pkgver.tar.xz"

depends_dev="glib-dev bzip2-dev libxml2-dev pkgconfig"

build() {
	cd "$srcdir"/$pkgname-$pkgver
	sed -i -e 's/gsf-gnome//' -e 's/thumbnailer//' Makefile.* || return 1
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--mandir=/usr/share/man \
		--disable-static \
		--without-gnome-vfs \
		--without-bonobo || return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
	rm -f "$pkgdir"/usr/share/man/man1/gsf-office-thumbnailer.1
}

md5sums="3c5a4fbd16a727c36974078e6d0e9575  libgsf-1.14.26.tar.xz"
sha256sums="8919e725aadd785380350c8dec7427d82cf33164bc9a9a549df9440a0c3da6d5  libgsf-1.14.26.tar.xz"
sha512sums="793cc06ab5228439a6e18f9db224d5f47ea9869d0fc2f0fdb3dc2240230f8b22f0e1aab5d00a34819316e6e9426c676db010d20fd87833502af5bdb4f8e9c3b9  libgsf-1.14.26.tar.xz"