updated on Fri Jan 20 20:16:25 UTC 2012
[aur-mirror.git] / oleo-motif / PKGBUILD
blobe49d9e9596985cffb4013c4adfd43e402c1c6d9f
1 # Maintainer: TDY <tdy@gmx.com>
3 pkgname=oleo-motif
4 pkgver=1.99.16
5 pkgrel=2
6 pkgdesc="GNU's lightweight spreadsheet program with a Motif-based interface"
7 arch=('i686' 'x86_64')
8 url="http://www.gnu.org/software/oleo/"
9 license=('GPL')
10 depends=('libcups' 'xbae')
11 makedepends=('autoconf' 'automake' 'texi2html')
12 provides=('oleo')
13 conflicts=('oleo')
14 install=oleo.install
15 source=(http://ftp.gnu.org/pub/gnu/oleo/oleo-$pkgver.tar.gz
16         http://archive.ubuntu.com/ubuntu/pool/universe/o/oleo/oleo_$pkgver-11ubuntu1.diff.gz)
17 md5sums=('d59801055b8ba6c6980ed1247a603f5f'
18          '23816dc1949c5d130eab69ccf7214fbf')
20 build() {
21   cd "$srcdir/oleo-$pkgver"
22   patch -Np1 -i ../oleo_$pkgver-11ubuntu1.diff || return 1
23   sed -i '/MAKE/ s/install-data-am//' Makefile.in
24   ./configure --prefix=/usr --infodir=/usr/share/info
25   find -type f -exec sed -i \
26     -e 's#the file COPYING for the#the license for the conditions:#g' \
27     -e 's#conditions\.#/usr/share/licenses/common/GPL2/license.txt#g' '{}' \;
28   make || return 1
31 package() {
32   cd "$srcdir/oleo-$pkgver"
33   make DESTDIR="$pkgdir" install
34   install -Dm644 doc/oleo.html "$pkgdir/usr/share/doc/oleo/oleo.html"