blob: 04eec3d2dd6e963dbd4ab0dca3f99cce55c6a0de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# PKGBUILD template to install gaussSum
# Maintainer: Hector Martinez-Seara Monne <hseara ##[at]## gmail?com>
# Contributor: Xyne <xyne at archlinux dot us>
pkgname=gausssum
pkgver=3.0.2
pkgrel=2
pkgdesc="A Program for getting results of Gaussian and GAMESS"
depends=('gnuplot' 'python-numpy' 'python-matplotlib' 'python-cclib')
arch=('any')
license=('GPL')
url="http://gausssum.sourceforge.net"
source=(http://prdownloads.sourceforge.net/gausssum/GaussSum-${pkgver}.tar.gz)
sha1sums=('5ca1761ac8d306354a25990da6207b23100f229c')
package() {
#Create required directories
mkdir -p ${pkgdir}/usr/bin
mkdir -p ${pkgdir}/usr/share/doc
mkdir -p ${pkgdir}/usr/share/applications
mkdir -p ${pkgdir}/usr/share/pixmaps
#Install program
cd ${srcdir}/GaussSum-${pkgver}
sed -e '16asys.path.append("/usr/share")' -i ./GaussSum.py
sed -e "s:\"Docs\":\"doc\", \"gausssum\":" -i ./gausssum/gausssumgui.py
install -D -m755 GaussSum.py ${pkgdir}/usr/bin/gausssum
cp -r gausssum ${pkgdir}/usr/share/gausssum
chmod -R 755 ${pkgdir}/usr/share/gausssum
#Install docs
cd ${srcdir}/GaussSum-${pkgver}
cp -r Docs ${pkgdir}/usr/share/doc/gausssum
chmod -R 755 ${pkgdir}/usr/share/doc/gausssum
#Install icon
cd ${srcdir}/GaussSum-${pkgver}
install -D -m644 GaussSum.ico ${pkgdir}/usr/share/pixmaps/gausssum.ico
#Create and install menu entry
cd ${srcdir}/GaussSum-${pkgver}
cat > GaussSum.desktop <<EOF
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=GaussSum
Comment=Program for Parsing Results of Gaussian and GAMESS
Exec=/usr/bin/gausssum
Icon=/usr/share/pixmaps/gausssum.ico
Categories=Application;Science;Education;
EOF
install -m644 GaussSum.desktop ${pkgdir}/usr/share/applications/gausssum.desktop
}
|