updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / foldingathome / PKGBUILD
blob3da437e21dd5b205dc1df4f8cf6e8dbbf5b0ac28
1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
2 # Contributor: Jason Taylor <jftaylor21@gmail.com>
3 # Contributor: seratne
4 # Contributor: Nick B <Shirakawasuna at gmail _dot_com>
6 pkgname=foldingathome
7 pkgver=6.02
8 pkgrel=2
9 pkgdesc="Distributed computing project which studies protein folding, misfolding, aggregation, and related diseases"
10 arch=('i686')
11 url="http://folding.stanford.edu/"
12 license=('custom')
13 depends=('bash')
14 makedepends=('patch')
15 backup=('etc/conf.d/foldingathome')
16 install=$pkgname.install
17 source=(http://www.stanford.edu/group/pandegroup/folding/release/FAH${pkgver}-Linux.tgz
18         archpatch_${pkgname}.diff)
19 md5sums=('112b3d66909050f1bb990993a1464cb9'
20          '02f4ca64d552b442d484c51fa5f4228a')
22 build() {
23   cd ${srcdir}
25   patch -p1 <archpatch_$pkgname.diff || return 1
27   install -D -c -m755 fah6 ${pkgdir}/opt/fah/fah6 || return 1
28   install -D -c -m755 ${srcdir}/foldingathome.rc.d \
29     ${pkgdir}/etc/rc.d/$pkgname || return 1
30   install -D -c -m644 ${srcdir}/$pkgname.conf.d \
31     ${pkgdir}/etc/conf.d/$pkgname || return 1
32   install -D -m644 $pkgname.license ${pkgdir}/usr/share/licenses/$pkgname/COPYING || return 1