blob: 9e93ead67ae3dfe404e77be355b9b131585629bb (
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
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: Adrian Groh <adrian[dot]groh[at]t[dash]online[dot]de>
# Contributor: Mikael Blomstrand <gmail: kmbloms>
pkgname=fahviewer-git
pkgver=7.6.11.r82.3ab8029
pkgrel=1
pkgdesc="Folding@home 3D Simulation Viewer"
url="https://github.com/FoldingAtHome/fah-viewer"
arch=('x86_64')
license=('GPL2')
conflicts=('fahviewer')
provides=('fahviewer')
makedepends=('git' 'scons')
depends=('freetype2' 'freeglut' 'glu')
source=("git+https://github.com/FoldingAtHome/fah-viewer.git"
"git+https://github.com/FoldingAtHome/fah-client-version.git"
"git+https://github.com/CauldronDevelopmentLLC/cbang.git")
sha1sums=('SKIP'
'SKIP'
'SKIP')
pkgver() {
cd "${srcdir}/fah-viewer"
printf "%s.r%s.%s" $(cat "${srcdir}/fah-client-version/version.txt") "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
export CBANG_HOME=${srcdir}/cbang
export FAH_CLIENT_VERSION_HOME=${srcdir}/fah-client-version
export FAH_VIEWER_HOME=${srcdir}/fah-viewer
cd "$CBANG_HOME"
msg2 "Building C!..."
scons with_openssl=no disable_local=libevent
cd "${srcdir}"
msg2 "Building FAHViewer..."
scons -C "$FAH_VIEWER_HOME"
}
package() {
cd fah-viewer
install -Dm755 FAHViewer "${pkgdir}/usr/bin/FAHViewer"
install -Dm644 FAHViewer.desktop "${pkgdir}/usr/share/applications/FAHViewer.desktop"
install -Dm644 images/FAHViewer-64.png "${pkgdir}/usr/share/pixmaps/FAHViewer-64.png"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|