blob: f1599e9fc36d29d8e9df6723668c1b268feb4cc0 (
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
|
# Maintainer: Dmitry Kharitonov <arch[at]nano-model[dot]com>
# Contributor: paul2lv [at] gmail dot com
pkgname=fahcontrol-beta
pkgver=7.6.21
pkgrel=1
pkgdesc='A Graphical User Interface (GUI) for Folding@Home - Beta version'
url="https://foldingathome.org"
arch=('x86_64')
license=('GPL3')
depends=('gtk2' 'python2' 'pygtk' 'glib2' 'pango' 'foldingathome-beta')
options=('!docs' '!libtool')
conflicts=('fahcontrol')
provides=('fahcontrol')
source=(https://download.foldingathome.org/releases/beta/release/fahcontrol/debian-stable-64bit/v7.6/fahcontrol_${pkgver}-1_all.deb)
sha256sums=('e1b87d23bc95335919f4c8550a02323b53da0a17e91b37b8ea9eb69d276ed9ed')
package() {
cd ${srcdir}
tar -xf data.tar.xz
# python2 fixes
cd ${srcdir}/usr/bin/
for _file in $(find . -name 'FAHControl' -print); do
sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' "${_file}"
sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' "${_file}"
done
cd ${srcdir}
install -dm755 ${pkgdir}/usr/lib/python2.7/site-packages/fah
cp -R ${srcdir}/usr/lib/python2.7/dist-packages/* ${pkgdir}/usr/lib/python2.7/site-packages/
install -D -m0755 ${srcdir}/usr/bin/FAHControl ${pkgdir}/usr/bin/FAHControl
install -D -m0644 ${srcdir}/usr/share/pixmaps/FAHControl.png ${pkgdir}/usr/share/pixmaps/FAHControl.png
install -D -m0644 ${srcdir}/usr/share/applications/FAHControl.desktop ${pkgdir}/usr/share/applications/FAHControl.desktop
install -D -m0644 ${srcdir}/usr/share/doc/fahcontrol/changelog.Debian.gz ${pkgdir}/usr/share/doc/fahcontrol/changelog.Debian.gz
}
|