# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $ # Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org pkgname=scigraphica pkgver=2.1.0 pkgrel=6 pkgdesc="A scientific application for data analysis and technical graphics" arch=('i686' 'x86_64') url="http://scigraphica.sourceforge.net/" license=('GPL') depends=('imlib' 'libxml2' 'libscigraphica' 'perl-xml-simple') makedepends=() options=('!libtool') source=(http://downloads.sourceforge.net/scigraphica/$pkgname-$pkgver.tar.gz) md5sums=('80b74b2faa0e2c46361f4de51e73df34') build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr --with-python-numeric-path=/usr/include/python2.5/numarray make || return 1 make DESTDIR=$startdir/pkg install # fix conflict with libscigraphica rm -r $startdir/pkg/usr/share/pixmaps/sg_icon.xpm # fix freedesktop complaince mkdir -p $startdir/pkg/usr/share/applications mv $startdir/pkg/usr/share/gnome/apps/Applications/sg.desktop \ $startdir/pkg/usr/share/applications echo "Categories=Application;Science" >> $startdir/pkg/usr/share/applications/sg.desktop # delete docs rm -r $startdir/pkg/usr/share/gnome # fix .desktop file sed -i "s|Exec=sga|Exec=scigraphica|g" $startdir/pkg/usr/share/applications/sg.desktop } # vim:syntax=sh