summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb83e70a4be41c7869376b4cebdcef0332cce7ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Dmitry Kharitonov <darksab0r at gmail com>
# Contributor: paul2lv [at] gmail dot com

pkgname=foldingathome-beta
pkgver=7.5.0
pkgrel=1
pkgdesc="Folding@Home is a distributed computing project which studies protein folding, misfolding, aggregation, and related diseases - beta version."
arch=('x86_64')
url="https://foldingathome.org/"
license=('CUSTOM')
depends=('glibc')
optdepends=('fahcontrol-beta: GUI for F@H'
            'fahviewer-beta: 3D simulation viewer for F@H'
            'opencl-icd-loader: for folding with a GPU'
            'opencl-driver: for folding with a GPU (choose Nvidia/AMD/Mesa package which matches your GPU)')
conflicts=('foldingathome' 'fahclient')
provides=('foldingathome' 'fahclient')
install=foldingathome.install
source=("https://download.foldingathome.org/releases/beta/release/fahclient/debian-stable-64bit/v7.5/fahclient_${pkgver}-64bit-release.tar.bz2"
        "foldingathome.service")
sha256sums=('dcbb21e0838c8b26337dd69e0b72353c6a4542f377571510fe324b35205beff4'
            'ad1bb4f104bc3446db7bb91a7d199bfeda5d80e15e08fe17bc69de1c276e2010')

package() {
  cd ${srcdir}

  install -D -c -m755 fahclient_${pkgver}-64bit-release/FAHClient ${pkgdir}/opt/fah/FAHClient
  install -D -c -m755 fahclient_${pkgver}-64bit-release/FAHCoreWrapper ${pkgdir}/opt/fah/FAHCoreWrapper
  install -D -c -m755 fahclient_${pkgver}-64bit-release/sample-config.xml ${pkgdir}/opt/fah/sample-config.xml

  chmod 755 ${pkgdir}/opt/fah/FAHClient
  chmod 755 ${pkgdir}/opt/fah/FAHCoreWrapper
  install -D -m644 fahclient_${pkgver}-64bit-release/copyright ${pkgdir}/usr/share/licenses/${pkgname}/copyright
  install -D -m644 fahclient_${pkgver}-64bit-release/README.md ${pkgdir}/opt/fah/README.md
  install -D -m644 fahclient_${pkgver}-64bit-release/CHANGELOG.md ${pkgdir}/opt/fah/CHANGELOG.md
  install -D -m644 ${srcdir}/foldingathome.service ${pkgdir}/usr/lib/systemd/system/foldingathome.service
}