summaryrefslogtreecommitdiff
path: root/community/ghemical/PKGBUILD
blob: 122c319b657a26e35c28ffd5ecf0b3ad097caea6 (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
# $Id: PKGBUILD 32528 2010-11-14 16:07:40Z xyne $
# Maintainer: Abhishek Dasgupta <abhidg@gmail.com>
# Contributor: Abhishek Dasgupta <abhidg@gmail.com>

pkgname=ghemical
pkgver=2.99.2
pkgrel=5
pkgdesc="Computational chemistry package."
license=("GPL")
arch=(i686 x86_64 'mips64el')
url="http://bioinformatics.org/ghemical/ghemical/"
depends=('libghemical>=2.99' 'liboglappth>=0.98' 'mesa' 'libglade' 'libxmu' 'ttf-dejavu' 'gtkglext' 'openbabel')
makedepends=('pkgconfig' 'intltool>=0.40.0' 'gettext')

source=(http://bioinformatics.org/ghemical/download/current/${pkgname}-${pkgver}.tar.gz ghemical.desktop ghemical.diff)

build() {
  cd ${srcdir}/${pkgname}-${pkgver}/
  patch -p1 -i ${srcdir}/ghemical.diff || return 1

  for i in eldview gpcview oglview p1dview p2dview; do
	sed -i "s/courier 12/monospace 10/g" "src/${i}_wcl.cpp" || return 1
  done

  install -D -m644 ../ghemical.desktop ${pkgdir}/usr/share/applications/ghemical.desktop
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=${pkgdir} install || return 1

}
md5sums=('30f29b21d2f0649fc79823a7042131b5'
         '14742b5efb2ccb94716b17f209adfd9e'
         '6cd605a689aab17b8f26249a42261569')