1 # PKGBUILD template to install gaussSum
2 # Maintainer: Hector Martinez-Seara Monne <hseara ##[at]## gmail?com>
3 # Contributor: Xyne <xyne at archlinux dot us>
7 pkgdesc="A Program for getting results of Gaussian and GAMESS"
8 depends=('tcl' 'tk' 'gnuplot' 'python2-numpy' 'python-imaging')
11 url="http://gausssum.sourceforge.net"
12 source=(http://prdownloads.sourceforge.net/gausssum/GaussSum-${pkgver}.tar.gz)
13 md5sums=('0e8c3b6d922fb84bbd83beed4e040489')
14 install=gausssum.install
17 cd ${srcdir}/GaussSum-${pkgver}
21 cd ${srcdir}/GaussSum-${pkgver}
22 mkdir -p ${pkgdir}/usr/bin
23 mkdir -p ${pkgdir}/usr/share/doc
24 mkdir -p ${pkgdir}/usr/share/applications
25 mkdir -p ${pkgdir}/usr/share/pixmaps
26 sed '16asys.path.append("/usr/share")' GaussSum.py > GaussSum
27 sed -i 's/python/python2/g' GaussSum
28 install -D -m755 GaussSum ${pkgdir}/usr/bin/gausssum
29 cp -r Docs ${pkgdir}/usr/share/doc/gausssum
30 chmod -R 755 ${pkgdir}/usr/share/doc/gausssum
31 cp -r gausssum ${pkgdir}/usr/share/gausssum
32 chmod -R 755 ${pkgdir}/usr/share/gausssum
33 install -D -m644 GaussSum.ico ${pkgdir}/usr/share/pixmaps/gausssum.ico
34 cat > GaussSum.desktop <<EOF
39 Comment=Program for Parsing Results of Gaussian and GAMESS
40 Exec=/usr/bin/gausssum
41 Icon=/usr/share/pixmaps/gausssum.ico
42 Categories=Application;Science;Education;
44 install -m644 GaussSum.desktop ${pkgdir}/usr/share/applications/gausssum.desktop