aboutsummaryrefslogtreecommitdiffstats
path: root/main/libgsf/APKBUILD
blob: 1673d9733463db9421eb45c340fe877ea727eccf (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgsf
pkgver=1.14.27
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 \
		--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 "$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="12f3693e8ad783a8b78b240cf54e33d9  libgsf-1.14.27.tar.xz"
sha256sums="a012e63bedd6003cea9ae8fa78944516b50c334767163b88527c6b2332bc3e6c  libgsf-1.14.27.tar.xz"
sha512sums="51bd097383bbe3867549d9552ab94b56da651a096d4f5b41af21401d1f8fe34bc150c36e6bb4007c7948e550c66f3a15e05272bb1cba63cd028963c8c34622f1  libgsf-1.14.27.tar.xz"