aboutsummaryrefslogtreecommitdiffstats
path: root/main/libgsf/APKBUILD
blob: 00aa618dcc0ff7c8c29a2ecb8cdd815320f86af8 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgsf
pkgver=1.14.36
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 -f "$pkgdir"/usr/share/man/man1/gsf-office-thumbnailer.1
}

md5sums="fcd6a9c2b1d939ca57823eb9c0bfa5cd  libgsf-1.14.36.tar.xz"
sha256sums="71b7507f86c0f7c341bb362bdc7925a2ae286729be0bf5b8fd9581ffbbd62940  libgsf-1.14.36.tar.xz"
sha512sums="ca0345fa4190df4d392e7cf71187d2f3b0c4bbe2312f18c076f1a9fa90e7803a754cec9a7df3da9cd00ded800eb4ad78e7acb099350dcf44c35181cddade7a85  libgsf-1.14.36.tar.xz"