# Maintainer: Natanael Copa pkgname=libgsf pkgver=1.14.34 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="146c9063296b92803c1721b7bdc23488 libgsf-1.14.34.tar.xz" sha256sums="f0fea447e0374a73df45b498fd1701393f8e6acb39746119f8a292fb4a0cb528 libgsf-1.14.34.tar.xz" sha512sums="9a9fbb178147ed80572a8e727b1d3ba1f305c12c6a3b151016daf7eb51b7bf75b30d3397070ce98d6e83acf9617b15eb281fa976df291ab894119d2647826532 libgsf-1.14.34.tar.xz"