core/libgsf/PKGBUILD
2016-06-15 12:30:24 +01:00

38 lines
1.3 KiB
Bash

pkgname=libgsf
pkgver=1.14.37
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=('9cfb98224b40fefa85606255ee194d58c38f129bf99443d759eaab7eb6dec055')
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
}