43 lines
1.8 KiB
Bash
43 lines
1.8 KiB
Bash
# Template file for 'fah'
|
|
pkgname=fah
|
|
version=7.6.13
|
|
revision=1
|
|
archs="x86_64"
|
|
hostmakedepends="python"
|
|
depends="python desktop-file-utils hicolor-icon-theme"
|
|
short_desc="Folding@home distributed computation power for research"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="custom:Proprietary, GPL-2.0-only"
|
|
homepage="https://foldingathome.org"
|
|
distfiles="https://download.foldingathome.org/releases/public/release/fahclient/debian-stable-64bit/v${version%.*}/fahclient_${version}_amd64.deb
|
|
https://download.foldingathome.org/releases/public/release/fahcontrol/debian-stable-64bit/v${version%.*}/fahcontrol_${version}-1_all.deb
|
|
https://download.foldingathome.org/releases/public/release/fahviewer/debian-stable-64bit/v${version%.*}/fahviewer_${version}_amd64.deb"
|
|
checksum="113cf292f7cc3a49ed718f0c44849e30018e799fa9f1eacd75716badbcb64cc8
|
|
cfbef479267600ad4d48a868c7d893848526f22318ce251c9ff8b1241887db61
|
|
d37326469b23a18ca418f6d8e61e3007b135f444c7bc1e20ea3c0669c2dcce27"
|
|
nostrip=yes
|
|
repository="nonfree"
|
|
restricted=yes
|
|
system_accounts="_fah"
|
|
_fah_homedir="/usr/libexec/_fah"
|
|
_fah_descr="Folding@Home user"
|
|
|
|
do_extract() {
|
|
ar p ${XBPS_SRCDISTDIR}/${pkgname}-${version}/fahclient_${version}_amd64.deb \
|
|
data.tar.xz | bsdtar -x -f -
|
|
ar p ${XBPS_SRCDISTDIR}/${pkgname}-${version}/fahcontrol_${version}-1_all.deb \
|
|
data.tar.xz | bsdtar -x -f -
|
|
ar p ${XBPS_SRCDISTDIR}/${pkgname}-${version}/fahviewer_${version}_amd64.deb \
|
|
data.tar.xz | bsdtar -x -f -
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir usr
|
|
vcopy ${wrksrc}/usr/* usr
|
|
vsv FAHClient
|
|
mv -v ${DESTDIR}/usr/lib/python2.7/{dist,site}-packages
|
|
vlicense ${DESTDIR}/usr/share/doc/fahclient/copyright LICENSE.FAHClient
|
|
vlicense ${DESTDIR}/usr/share/doc/fahviewer/LICENSE LICENSE.FAHViewer
|
|
# Example file to modfiy or cut+paste from for /etc/sv/FAHClient/config
|
|
vsconf ${FILESDIR}/config.example
|
|
}
|