summaryrefslogtreecommitdiffstats
path: root/abs/extra/foldingathome/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-12-04 21:43:33 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-12-04 21:43:33 (GMT)
commit03a4f6f5c9a43baf1dd7d5e9b44e5113b90ba35b (patch)
tree5d7dd7d95011fda5712356e67792d4d89b3d3f1f /abs/extra/foldingathome/PKGBUILD
parent251aa67903af196b8cfe6eac0ff04a37a456238d (diff)
downloadlinhes_pkgbuild-03a4f6f5c9a43baf1dd7d5e9b44e5113b90ba35b.zip
linhes_pkgbuild-03a4f6f5c9a43baf1dd7d5e9b44e5113b90ba35b.tar.gz
linhes_pkgbuild-03a4f6f5c9a43baf1dd7d5e9b44e5113b90ba35b.tar.bz2
foldingathome: updated client to v7
refs #872
Diffstat (limited to 'abs/extra/foldingathome/PKGBUILD')
-rw-r--r--abs/extra/foldingathome/PKGBUILD56
1 files changed, 38 insertions, 18 deletions
diff --git a/abs/extra/foldingathome/PKGBUILD b/abs/extra/foldingathome/PKGBUILD
index c78cb93..89f1eca 100644
--- a/abs/extra/foldingathome/PKGBUILD
+++ b/abs/extra/foldingathome/PKGBUILD
@@ -1,28 +1,48 @@
-# Contributor: Jason Taylor <jftaylor21@gmail.com>
-# Contributor: seratne
-# Contributor: Nick B <Shirakawasuna at gmail _dot_com>
+# Contributor: paul2lv [at] gmail dot com
+# Maintainer:
pkgname=foldingathome
-pkgver=6.02
-pkgrel=7
+pkgver=7.2.9
+pkgrel=1
pkgdesc="Folding@Home is a distributed computing project which studies protein folding, misfolding, aggregation, and related diseases."
arch=('i686' 'x86_64')
url="http://folding.stanford.edu/"
-license=('custom')
-depends=('bash')
-backup=('etc/conf.d/foldingathome')
-install=foldingathome.install
-source=(http://www.stanford.edu/group/pandegroup/folding/release/FAH$pkgver-Linux.tgz
- run)
+license=('CUSTOM')
+depends=('glibc')
+install=foldingathome-v7.install
+
+# Moronic server
+DLAGENTS=("https::/usr/bin/curl -k -o %o %u")
+
+[ "$CARCH" = "i686" ] &&_source_arch="32bit"
+[ "$CARCH" = "x86_64" ] && _source_arch="64bit"
+
+if [ "$CARCH" = "i686" ]; then
+ source=(https://fah-web.stanford.edu/file-releases/public/release/fahclient/debian-testing-32bit/v7.2/fahclient_7.2.9-32bit-release.tar.bz2 foldingathome-v7.rc.d foldingathome-v7.service)
+ md5sums=('f8a0b43bfc4110f2200b689d8d788962' '50481b4e31edb24519e855d770955eda' 'fe7c7652443e72830cf6d641846c07f6')
+
+elif [ "$CARCH" = "x86_64" ]; then
+ source=(https://fah-web.stanford.edu/file-releases/public/release/fahclient/debian-testing-64bit/v7.2/fahclient_7.2.9-64bit-release.tar.bz2 foldingathome-v7.rc.d foldingathome-v7.service)
+ md5sums=('d8d93d3436e5ebb52876c73cf375c9ac' '50481b4e31edb24519e855d770955eda' 'fe7c7652443e72830cf6d641846c07f6')
+fi
+
build() {
- cd $startdir/src/
+ cd ${srcdir}
- tar zxf FAH${pkgver}-Linux.tgz
+ install -D -c -m755 fahclient_${pkgver}-${_source_arch}-release/FAHClient ${pkgdir}/opt/fah-v7/FAHClient
+ install -D -c -m755 fahclient_${pkgver}-${_source_arch}-release/FAHCoreWrapper ${pkgdir}/opt/fah-v7/FAHCoreWrapper
+ install -D -c -m755 ${srcdir}/foldingathome-v7.rc.d ${pkgdir}/etc/rc.d/foldingathome-v7
+ install -D -c -m755 fahclient_${pkgver}-${_source_arch}-release/sample-config.xml ${pkgdir}/opt/fah-v7/sample-config.xml
- # At this stage, the mpiexec is not included because it requires x86_64.
- install -D -c -m755 fah6 $startdir/pkg/usr/bin/fah6 || return 1
- install -D -m755 run $startdir/pkg/etc/sv/fah/run
+ chmod 755 ${pkgdir}/opt/fah-v7/FAHClient
+ chmod 755 ${pkgdir}/opt/fah-v7/FAHCoreWrapper
+ install -D -m644 fahclient_${pkgver}-${_source_arch}-release/copyright ${pkgdir}/usr/share/licenses/${pkgname}/copyright
+ install -D -m644 fahclient_${pkgver}-${_source_arch}-release/README ${pkgdir}/opt/fah-v7/README
+ install -D -m644 fahclient_${pkgver}-${_source_arch}-release/ChangeLog ${pkgdir}/opt/fah-v7/ChangeLog
+ install -D -m644 ${srcdir}/foldingathome-v7.service ${pkgdir}/etc/systemd/system/foldingathome-v7.service
}
-md5sums=('112b3d66909050f1bb990993a1464cb9'
- 'cefaf5ba2f3e2fe81533b5ee4795dc78')
+
+md5sums=('d8d93d3436e5ebb52876c73cf375c9ac'
+ '50481b4e31edb24519e855d770955eda'
+ 'fe7c7652443e72830cf6d641846c07f6')