1 # $Id: PKGBUILD 7497 2010-01-07 03:29:37Z dgriffiths $
2 # Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
6 pkgdesc="A scientific application for data analysis and technical graphics"
8 url="http://scigraphica.sourceforge.net/"
10 depends=('imlib' 'libxml2' 'libscigraphica' 'perl-xml-simple')
13 source=(http://downloads.sourceforge.net/scigraphica/${pkgname}-${pkgver}.tar.gz)
14 md5sums=('80b74b2faa0e2c46361f4de51e73df34')
17 cd ${srcdir}/${pkgname}-${pkgver}
18 ./configure --prefix=/usr --with-python-numeric-path=/usr/include/python2.5/numarray --mandir=/usr/share
20 make DESTDIR=${pkgdir} install
22 # fix conflict with libscigraphica
23 rm -r ${pkgdir}/usr/share/pixmaps/sg_icon.xpm
24 # fix freedesktop complaince
25 mkdir -p ${pkgdir}/usr/share/applications
26 mv ${pkgdir}/usr/share/gnome/apps/Applications/sg.desktop \
27 ${pkgdir}/usr/share/applications
28 echo "Categories=Application;Science" >> ${pkgdir}/usr/share/applications/sg.desktop
30 rm -r ${pkgdir}/usr/share/gnome
33 sed -i "s|Exec=sga|Exec=scigraphica|g" ${pkgdir}/usr/share/applications/sg.desktop