44 lines
1.8 KiB
Bash
44 lines
1.8 KiB
Bash
# Template file for 'fah'
|
|
pkgname=fah
|
|
version=7.5.1
|
|
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="efe47061d328667259c1815b98bc6c37da339363fb8e9386673f6a96f4d37d26
|
|
c9d37823abe666923d903fbf4d7c6059cf8042a208954bc0044c9c5a6635b4d8
|
|
c87d331a35fc68d04427996aef05b275ca69dab3bef4087efaaf5e27e95d7b29"
|
|
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
|
|
}
|