core/libgsf/PKGBUILD

38 lines
1.3 KiB
Bash
Raw Normal View History

2013-01-26 02:09:28 +08:00
pkgname=libgsf
2015-04-20 07:36:27 +08:00
pkgver=1.14.33
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")
2015-04-20 07:36:27 +08:00
sha256sums=('82dd38e0c1f497704bf3b43682fca2768886058f004b14e9b5d103596f8c6e6b')
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
#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
}