# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $ # Maintainer: Abhishek Dasgupta # Contributor: Abhishek Dasgupta pkgname=ghemical pkgver=2.98 pkgrel=2 pkgdesc="Computational chemistry package." license=("GPL") arch=(i686 x86_64) url="http://bioinformatics.org/ghemical/ghemical/" depends=(libghemical=2.98 liboglappth=0.98 mesa libglade libxmu ttf-dejavu gtkglext) makedepends=('pkgconfig') 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=('e6bf63a004c4f162eb9a7838872f5a4c' '3326191b977a233fb65b55b959ad4165' '6cd605a689aab17b8f26249a42261569')