Advertisement
cip91

PKGBUILD foldingathome 7.2.9

Mar 6th, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. # Contributor: paul2lv [at] gmail dot com
  2. # Maintainer:
  3.  
  4. pkgname=foldingathome
  5. pkgver=7.2.9
  6. pkgrel=1
  7. pkgdesc="Folding@Home is a distributed computing project which studies protein folding, misfolding, aggregation, and related diseases."
  8. arch=('i686' 'x86_64')
  9. url="http://folding.stanford.edu/"
  10. license=('CUSTOM')
  11. depends=('glibc')
  12. replaces=('foldingathome-v7')
  13. conflicts=('foldingathome-v7')
  14. install=foldingathome.install
  15.  
  16. # Moronic server
  17. DLAGENTS=("https::/usr/bin/curl -k -o %o %u")
  18.  
  19. [ "$CARCH" = "i686" ] &&_source_arch="32bit"
  20. [ "$CARCH" = "x86_64" ] && _source_arch="64bit"
  21.  
  22. if [ "$CARCH" = "i686" ]; then
  23. 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.service)
  24.  
  25. elif [ "$CARCH" = "x86_64" ]; then
  26. 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.service)
  27. md5sums=('d8d93d3436e5ebb52876c73cf375c9ac' 'dd55dbae3fbe56f90bed0e40f2b0de3c')
  28. fi
  29.  
  30.  
  31. build() {
  32. cd ${srcdir}
  33.  
  34. install -D -c -m755 fahclient_${pkgver}-${_source_arch}-release/FAHClient ${pkgdir}/opt/fah/FAHClient
  35. install -D -c -m755 fahclient_${pkgver}-${_source_arch}-release/FAHCoreWrapper ${pkgdir}/opt/fah/FAHCoreWrapper
  36. install -D -c -m755 fahclient_${pkgver}-${_source_arch}-release/sample-config.xml ${pkgdir}/opt/fah/sample-config.xml
  37.  
  38. chmod 755 ${pkgdir}/opt/fah/FAHClient
  39. chmod 755 ${pkgdir}/opt/fah/FAHCoreWrapper
  40. install -D -m644 fahclient_${pkgver}-${_source_arch}-release/copyright ${pkgdir}/usr/share/licenses/${pkgname}/copyright
  41. install -D -m644 fahclient_${pkgver}-${_source_arch}-release/README ${pkgdir}/opt/fah/README
  42. install -D -m644 fahclient_${pkgver}-${_source_arch}-release/ChangeLog ${pkgdir}/opt/fah/ChangeLog
  43. install -D -m644 ${srcdir}/foldingathome.service ${pkgdir}/etc/systemd/system/foldingathome.service
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement