aboutsummaryrefslogtreecommitdiffstats
path: root/main/libgsf/APKBUILD
blob: d9f0800b60a30230108aa5eb3b5ab56f0583f806 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgsf
pkgver=1.14.33
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"

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

prepare() {
	cd "$_builddir"
}

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

package() {
	cd "$_builddir"
	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="b15d54dcb266cae1927c633204a11bda  libgsf-1.14.33.tar.xz"
sha256sums="82dd38e0c1f497704bf3b43682fca2768886058f004b14e9b5d103596f8c6e6b  libgsf-1.14.33.tar.xz"
sha512sums="9dbda65a610f3e6efaf40bb51ed9ebabe485e0c2c9c8d0ff155ae39fa1aa3074df8094f51d9b0f27eb251b1aed4b4faa77ffce4d6dc16ef7c99c5b697528be5f  libgsf-1.14.33.tar.xz"