updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / libboard / PKGBUILD
blob37863a76110d95a147728a8d10e39e9e9e2ae175
1 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
2 pkgname=libboard  
3 pkgver=0.8.6b
4 pkgrel=1 
5 pkgdesc="C++ library for simple Postscript, SVG, and XFig drawings"
6 url="http://libboard.sourceforge.net"
7 arch=('x86_64')
8 license=('LGPL')
9 depends=('gcc-libs')
10 source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-${pkgver}-2.tar.gz" gcc4.4.1.diff)
11 md5sums=('d462ca619221090f72649f40aa4e0fa7' '6887d24c7c2bc5ca6051d0d3c29238c6')
12 build() {
13   cd $srcdir/$pkgname-$pkgver 
14   patch -p1 < $srcdir/gcc4.4.1.diff || return 1 
15   ./configure --prefix=/usr || return 1 
16   make CXXFLAGSOBJ="-ansi -pedantic -Wall -W  -I./include -fPIC" || return 1
17   make PREFIX=$pkgdir/usr install || return 1 
18   chmod 644 $pkgdir/usr/share/$pkgname/examples/*.cpp || return 1
19   rm $pkgdir/usr/share/$pkgname/LICENSE.gz || return 1
20   install -d $pkgdir/usr/share/doc/$pkgname || return 1
21   cp -r doc/* $pkgdir/usr/share/doc/$pkgname || return 1
22   rm -r $pkgdir/usr/share/doc/$pkgname/html/.svn || return 1