aboutsummaryrefslogtreecommitdiffstats
path: root/main/libgsf/APKBUILD
blob: a4eb3aafcc045bae7ff9999beae9885d13b08f84 (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgsf
pkgver=1.14.40
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="bzip2-dev"

_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 -f "$pkgdir"/usr/share/man/man1/gsf-office-thumbnailer.1
}

md5sums="df4d641f66eefbf11d869d4b7259d3f9  libgsf-1.14.40.tar.xz"
sha256sums="350638894b5e324d8880b50e4bc43daabaf9f3f43a66010af080ffa2d32d51e0  libgsf-1.14.40.tar.xz"
sha512sums="6fcae7b44f4558a7149fa7c33a23ce288674df4d1120c87aed987edabd9d010e82fefaea0532e1179185a228265a29eae2360a16c7109960a52a098535ad4d5e  libgsf-1.14.40.tar.xz"