updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gnumeric-minimal / PKGBUILD
blobe94d1db20c092595bc1871e937cde5ea4f736d8d
1 # Maintainer: megadriver <megadriver at gmx dot com>
2 # Based on gnumeric from [extra]
4 pkgname=gnumeric-minimal
5 _pkgname=gnumeric
6 pkgver=1.10.17
7 pkgrel=1
8 pkgdesc="A GNOME-less spreadsheet program"
9 arch=('i686' 'x86_64')
10 url="http://www.gnome.org/projects/gnumeric/"
11 license=('GPL')
12 depends=('goffice-light' 'desktop-file-utils' 'hicolor-icon-theme')
13 makedepends=('intltool')
14 install=gnumeric-minimal.install
15 conflicts=('gnumeric')
16 provides=('gnumeric')
17 options=('libtool')
18 source=(http://ftp.gnome.org/pub/gnome/sources/${_pkgname}/${pkgver%.*}/${_pkgname}-${pkgver}.tar.xz)
19 md5sums=('ee824d9656a271957d949b8769341f40')
21 build() {
22   cd "${srcdir}/${_pkgname}-${pkgver}"
24   # Create a dummy file to trick gnumeric into building without docs
25   # Got this from the gnumeric SlackBuild
26   touch doc/C/gnumeric-C.omf.out
27   
28   # Remove invalid mime type. (FS#26338)
29   sed -i -e 's/zz-application\/zz-winassoc-xls;//' gnumeric.desktop.in
31   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
32               --disable-schemas-install --disable-ssindex \
33               --without-gnome --without-psiconv --without-perl \
34               --without-python --without-gda
35   make
38 package() {
39   cd "${srcdir}/${_pkgname}-${pkgver}"
40   make DESTDIR="${pkgdir}" install
42   rm -rf "${pkgdir}/etc/gconf"
43   rm -rf "${pkgdir}/usr/share/gnome"