pkgname=libgsf pkgver=1.14.41 pkgrel=1 arch=('x86_64') pkgdesc="The GNOME Structured File Library is a utility library for reading and writing structured file formats" url="http://www.gnome.org/" license=('GPL' 'LGPL') depends=('libxml2' 'glib2' 'bzip2') makedepends=('intltool' 'pkgconfig' 'python2' 'gobject-introspection') source=("http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/1.14/${pkgname}-${pkgver}.tar.xz") sha256sums=('150b98586a1021d5c49b3d4d065d0aa3e3674ae31db131af5372499d2d3f08d3') build() { cd "${srcdir}/${pkgname}-${pkgver}" PYTHON=/usr/bin/python2 ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/share/man \ --disable-static \ --enable-introspection make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install #All those removes will strip gnome specific stuff rm -f "${pkgdir}/usr/share/man/man1/gsf-office-thumbnailer.1" rm -f "${pkgdir}/usr/lib/libgsf-gnome"* rm -rf "${pkgdir}/usr/include/libgsf-1/gsf-gnome/" rm -rf "${pkgdir}/etc/gconf" rm -f "${pkgdir}/usr/lib/pkgconfig/libgsf-gnome-1.pc" rm -f "${pkgdir}/usr/bin/gsf-office-thumbnailer" rm -f "${pkgdir}"/usr/lib/python*/site-packages/gsf/gnomemodule.so }