2013-01-26 02:09:28 +08:00
|
|
|
pkgname=libgsf
|
2016-11-21 09:16:16 +08:00
|
|
|
pkgver=1.14.40
|
2015-01-12 07:07:09 +08:00
|
|
|
pkgrel=1
|
2013-01-26 02:09:28 +08:00
|
|
|
arch=('x86_64')
|
|
|
|
pkgdesc="The GNOME Structured File Library is a utility library for reading and writing structured file formats"
|
2010-03-14 23:48:48 +08:00
|
|
|
url="http://www.gnome.org/"
|
|
|
|
license=('GPL' 'LGPL')
|
2013-01-26 02:09:28 +08:00
|
|
|
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")
|
2016-11-21 09:16:16 +08:00
|
|
|
sha256sums=('350638894b5e324d8880b50e4bc43daabaf9f3f43a66010af080ffa2d32d51e0')
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
build() {
|
2013-01-26 02:09:28 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
PYTHON=/usr/bin/python2
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--disable-static \
|
|
|
|
--enable-introspection
|
|
|
|
make
|
2010-03-14 23:48:48 +08:00
|
|
|
}
|
|
|
|
|
2013-01-26 02:09:28 +08:00
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2014-11-10 23:33:21 +08:00
|
|
|
|
2012-09-27 07:54:11 +08:00
|
|
|
#All those removes will strip gnome specific stuff
|
2010-03-14 23:48:48 +08:00
|
|
|
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
|
|
|
|
}
|