# Maintainer: Natanael Copa pkgname=libgsf pkgver=1.14.42 pkgrel=1 pkgdesc="The GNOME Structured File Library is a utility library for reading and writing structured file formats." url="https://www.gnome.org/" arch="all" license="LGPL-2.1-only" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" depends= depends_dev="bzip2-dev" makedepends="libxml2-dev glib-dev bzip2-dev intltool python3 zlib-dev gobject-introspection-dev" source="https://download.gnome.org/sources/$pkgname/1.14/$pkgname-$pkgver.tar.xz" # secfixes: # 1.14.41-r0: # - CVE-2016-9888 build() { cd "$builddir" sed -i -e 's/gsf-gnome//' -e 's/thumbnailer//' Makefile.* ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/share/man \ --disable-static \ --without-gnome-vfs \ --without-bonobo \ --enable-introspection make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install rm -f "$pkgdir"/usr/share/man/man1/gsf-office-thumbnailer.1 } sha512sums="ed31a4064caa06145660f8cf2acfe0f272bb89c81db41702ebd1d006bebb5f5fb2dd345be4ffec5d4f3688a9d1f539430371c7c6f958c45a0514a00855fc2e54 libgsf-1.14.42.tar.xz"