updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / scigraphica / PKGBUILD
blob832130c60294fd537e3353ce56047bbea412e4b9
1 # $Id: PKGBUILD 7497 2010-01-07 03:29:37Z dgriffiths $
2 # Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
3 pkgname=scigraphica
4 pkgver=2.1.0
5 pkgrel=7
6 pkgdesc="A scientific application for data analysis and technical graphics"
7 arch=('i686' 'x86_64')
8 url="http://scigraphica.sourceforge.net/"
9 license=('GPL')
10 depends=('imlib' 'libxml2' 'libscigraphica' 'perl-xml-simple')
11 makedepends=()
12 options=('!libtool')
13 source=(http://downloads.sourceforge.net/scigraphica/${pkgname}-${pkgver}.tar.gz)
14 md5sums=('80b74b2faa0e2c46361f4de51e73df34')
16 build() {
17   cd ${srcdir}/${pkgname}-${pkgver}
18   ./configure --prefix=/usr --with-python-numeric-path=/usr/include/python2.5/numarray --mandir=/usr/share
19   make || return 1
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
29   # delete docs
30   rm -r ${pkgdir}/usr/share/gnome
32   # fix .desktop file
33   sed -i "s|Exec=sga|Exec=scigraphica|g" ${pkgdir}/usr/share/applications/sg.desktop
35 # vim:syntax=sh