# Maintainer: Natanael Copa pkgname=libgsf pkgver=1.14.39 pkgrel=1 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="df59805ccb44a5657676bbd16fe1fe9c libgsf-1.14.39.tar.xz" sha256sums="3dcfc911438bf6fae5fe842e85a9ac14324d85165bd4035caad4a4420f15a175 libgsf-1.14.39.tar.xz" sha512sums="051bfba16f483dccbab4188c9c62ec562cc0b8fde3412260be3409417beea2d662c81c50bba1202b0067e75b83467a3bdd6fe0a09c3b6df9fcf3667004ab674e libgsf-1.14.39.tar.xz"