diff options
author | Paul B | 2015-06-18 23:11:17 +0300 |
---|---|---|
committer | Paul B | 2015-06-18 23:11:17 +0300 |
commit | 06479935e78fa623d5864ea4a5e95db90cdf4194 (patch) | |
tree | 876281250b155bdf475fa7eb6f6ce34d26063da9 | |
download | aur-06479935e78fa623d5864ea4a5e95db90cdf4194.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 51 | ||||
-rw-r--r-- | foldingathome.install | 10 | ||||
-rw-r--r-- | foldingathome.service | 12 |
4 files changed, 89 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f521dbff0eff --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = foldingathome + pkgdesc = Folding@Home is a distributed computing project which studies protein folding, misfolding, aggregation, and related diseases. + pkgver = 7.4.4 + pkgrel = 2 + url = http://folding.stanford.edu/ + install = foldingathome.install + arch = i686 + arch = x86_64 + license = CUSTOM + depends = glibc + optdepends = opencl-nvidia: for folding with an nVidia GPU + conflicts = foldingathome-v7 + replaces = foldingathome-v7 + +pkgname = foldingathome + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..38e5bd879cae --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Contributor: paul2lv [at] gmail dot com +# Maintainer: + +pkgname=foldingathome +pkgver=7.4.4 +pkgrel=2 +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=('glibc') +optdepends=('opencl-nvidia: for folding with an nVidia GPU') +replaces=('foldingathome-v7') +conflicts=('foldingathome-v7') +install=foldingathome.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.4/fahclient_7.4.4-32bit-release.tar.bz2 +foldingathome.service) + md5sums=('cfc23aeb72efed82289b53a055618dfc' 'dd55dbae3fbe56f90bed0e40f2b0de3c') + +elif [ "$CARCH" = "x86_64" ]; then + +source=(https://fah-web.stanford.edu/file-releases/public/release/fahclient/debian-testing-64bit/v7.4/fahclient_7.4.4-64bit-release.tar.bz2 +foldingathome.service) + md5sums=('3a068d236d3a508a2a98a4a161fa14e2' 'dd55dbae3fbe56f90bed0e40f2b0de3c') +fi + + +package() { + cd ${srcdir} + + install -D -c -m755 fahclient_${pkgver}-${_source_arch}-release/FAHClient ${pkgdir}/opt/fah/FAHClient + install -D -c -m755 fahclient_${pkgver}-${_source_arch}-release/FAHCoreWrapper ${pkgdir}/opt/fah/FAHCoreWrapper + install -D -c -m755 fahclient_${pkgver}-${_source_arch}-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}-${_source_arch}-release/copyright ${pkgdir}/usr/share/licenses/${pkgname}/copyright + install -D -m644 fahclient_${pkgver}-${_source_arch}-release/README ${pkgdir}/opt/fah/README + install -D -m644 fahclient_${pkgver}-${_source_arch}-release/ChangeLog ${pkgdir}/opt/fah/ChangeLog + install -D -m644 ${srcdir}/foldingathome.service ${pkgdir}/usr/lib/systemd/system/foldingathome.service +} + diff --git a/foldingathome.install b/foldingathome.install new file mode 100644 index 000000000000..d48431453e1f --- /dev/null +++ b/foldingathome.install @@ -0,0 +1,10 @@ +post_install() { + cat << 'EOM' + --> Please cd to /opt/fah/ and execute ./FAHClient --configure + --> as root to configure your settings. If you are using systemd, + --> then run "systemctl enable foldingathome.service" to enable + --> the folding service. If you would like join the Arch Linux + --> team, use team number 45032. +EOM +} + diff --git a/foldingathome.service b/foldingathome.service new file mode 100644 index 000000000000..5219a6317ca8 --- /dev/null +++ b/foldingathome.service @@ -0,0 +1,12 @@ +[Unit] +Description=Folding@home distributed computing client +After=network.target + +[Service] +Type=simple +WorkingDirectory=/opt/fah +ExecStart=/opt/fah/FAHClient --config /opt/fah/config.xml --exec-directory=/opt/fah --data-directory=/opt/fah + +[Install] +WantedBy=multi-user.target + |