updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / fah / PKGBUILD
blobfc08b4386912e42660aeadad22389ae79668b3c6
1 # Maintainer: ztroumpf <fpeterscom@yahoo.fr>
3 pkgname=fah
4 pkgver=6.02_29
5 _32pkgver=6.02
6 _64pkgver=6.29
7 pkgrel=7
8 pkgdesc="Distributed computing project which studies protein folding, misfolding, aggregation, and related diseases. i686 and x86_64"
9 arch=('i686' 'x86_64')
10 url="http://folding.stanford.edu/"
11 license=('custom')
12 depends=('bash')
13 makedepends=('patch')
15 backup="etc/conf.d/fah"
17 if [[ $CARCH == "i686" ]]; then
18     _pkgver=${_32pkgver}
19 else
20     _pkgver=${_64pkgver}
23 install=$pkgname.install
24 source=(http://www.stanford.edu/group/pandegroup/folding/release/FAH${_pkgver}-Linux.tgz \
25     fahpatch_${_32pkgver}.diff \
26     fahpatch_${_64pkgver}.diff)
29 build() {
30   cd ${srcdir}
32   patch -p1 < fahpatch_${_pkgver}.diff || return 1
34   install -D -c -m755 fah6 ${pkgdir}/opt/fah/fah6 || return 1
35   install -D -c -m755 ${srcdir}/fah.rc.d \
36     ${pkgdir}/etc/rc.d/$pkgname || return 1
37   install -D -c -m644 ${srcdir}/$pkgname.conf.d \
38     ${pkgdir}/etc/conf.d/$pkgname || return 1
39   install -D -m644 $pkgname.license ${pkgdir}/usr/share/licenses/$pkgname/COPYING || return 1 
42 if [[ $CARCH == "i686" ]]; then
43 md5sums=('112b3d66909050f1bb990993a1464cb9'
44          '59bd85738acb714138184d9a13e154ed'
45          'a8dec4df46309eda548774390e7597db')
46 else
47 md5sums=('e96acd44aae5ff42a521fd8f5022c142'
48          '59bd85738acb714138184d9a13e154ed'
49          'a8dec4df46309eda548774390e7597db')