diff options
Diffstat (limited to 'community/ghemical/PKGBUILD')
-rw-r--r-- | community/ghemical/PKGBUILD | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/community/ghemical/PKGBUILD b/community/ghemical/PKGBUILD index 480b0b14c..69485ad02 100644 --- a/community/ghemical/PKGBUILD +++ b/community/ghemical/PKGBUILD @@ -1,34 +1,27 @@ -# $Id: PKGBUILD 32528 2010-11-14 16:07:40Z xyne $ -# Maintainer: Abhishek Dasgupta <abhidg@gmail.com> +# Maintainer: Xyne <ac xunilhcra enyx, backwards> # Contributor: Abhishek Dasgupta <abhidg@gmail.com> pkgname=ghemical -pkgver=2.99.2 -pkgrel=5 +pkgver=3.0.0 +pkgrel=1 pkgdesc="Computational chemistry package." license=("GPL") arch=(i686 x86_64) url="http://bioinformatics.org/ghemical/ghemical/" -depends=('libghemical>=2.99' 'liboglappth>=0.98' 'mesa' 'libglade' 'libxmu' 'ttf-dejavu' 'gtkglext' 'openbabel') +depends=('libghemical>=3.0' 'liboglappth>=1.0' '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) +source=(http://bioinformatics.org/ghemical/download/release20111012/${pkgname}-${pkgver}.tar.gz ghemical.desktop) +md5sums=('becf98626f0eba73f7f042bc92aa60ac' + '7e8789d42d1318a427a30f3bf64cb5a6') 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 + cd -- "$srcdir/$pkgname-$pkgver/" ./configure --prefix=/usr - make || return 1 - make DESTDIR=${pkgdir} install || return 1 - + make } -md5sums=('30f29b21d2f0649fc79823a7042131b5' - '14742b5efb2ccb94716b17f209adfd9e' - '6cd605a689aab17b8f26249a42261569') +package() { + install -D -m644 "$srcdir"/ghemical.desktop "$pkgdir"/usr/share/applications/ghemical.desktop + cd -- "$srcdir/$pkgname-$pkgver/" + make DESTDIR="$pkgdir" install +} |