pkgname=libgsf pkgver=1.14.40 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=('350638894b5e324d8880b50e4bc43daabaf9f3f43a66010af080ffa2d32d51e0') 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 }