blob: d5343da7043cae1140fd810f541f51307f491f6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# $Id: PKGBUILD 124392 2011-05-20 13:18:16Z heftig $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
pkgbase=libgsf
pkgname=('libgsf' 'libgsf-gnome')
pkgver=1.14.21
pkgrel=1
arch=(i686 x86_64 'mips64el')
url="http://www.gnome.org/"
license=('GPL' 'LGPL')
makedepends=('libxml2' 'glib2' 'bzip2' 'intltool' 'pkgconfig'
'python2' 'libbonobo' 'gconf' 'pygtk')
options=('!libtool' '!emptydirs')
source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgbase}/1.14/${pkgbase}-${pkgver}.tar.bz2)
sha256sums=('eef0a9d6eca4e6af6c16b208947e3c958c428b94d22792bdd0b80c08a4b301db')
build() {
cd "${srcdir}/${pkgbase}-${pkgver}"
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--mandir=/usr/share/man --disable-static
make
}
package_libgsf() {
pkgdesc="The GNOME Structured File Library is a utility library for reading and writing structured file formats"
depends=('libxml2' 'glib2' 'bzip2')
cd "${srcdir}/${pkgbase}-${pkgver}"
make DESTDIR="${pkgdir}" GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 install
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
}
package_libgsf-gnome() {
pkgdesc="Libgsf GNOME components"
depends=("libgsf=${pkgver}" 'libbonobo' 'gconf')
install=libgsf-gnome.install
cd "${srcdir}/${pkgbase}-${pkgver}"
make -C gsf DESTDIR="${pkgdir}" install-libLTLIBRARIES
make -C gsf-gnome DESTDIR="${pkgdir}" install
make -C thumbnailer DESTDIR="${pkgdir}" install
make -C python DESTDIR="${pkgdir}" install
make -C doc DESTDIR="${pkgdir}" install-manpageDATA
rm -f "${pkgdir}/usr/share/man/man1/gsf.1"
rm -f "${pkgdir}/usr/share/man/man1/gsf-vba-dump.1"
rm -f "${pkgdir}"/usr/lib/python*/site-packages/gsf/_*
rm -f "${pkgdir}"/usr/lib/libgsf-1.so*
install -m755 -d "${pkgdir}/usr/lib/pkgconfig"
install -m644 libgsf-gnome-1.pc "${pkgdir}/usr/lib/pkgconfig/"
install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/libgsf-gnome.schemas" --domain libgsf "${pkgdir}/etc/gconf/schemas/"*.schemas
rm -f "${pkgdir}/etc/gconf/schemas/"*.schemas
}
|