summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b6bf41e2927345f53ab5e21f9dfc01755e631c6b (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Maintainer: Justin Jagieniak <justin@jagieniak.net>
# Contributor: Nicky D

pkgname=firestorm
pkgver=r57588.7b5a98fba31f
pkgrel=1
pkgdesc="Firestorm is FOSS where you can build & share Virtual Reality (VR) in OpenSim/SecondLife (P2P). Meet people in 3D! Source build."
arch=('i686' 'x86_64')
url=https://www.firestormviewer.org/
license=('LGPL')
depends=(dbus-glib gconf glu gtk2 lib32-libidn lib32-libsndfile lib32-util-linux lib32-zlib libgl libidn libjpeg-turbo libpng libxss libxml2 mesa nss openal sdl vlc zlib)
optdepends=(
  'alsa-lib: for ALSA support'
  'pepper-flash: for inworld Flash support'
  'freealut: for OpenAL support'
  'gstreamer: For video support - may need good, bad and ugly plugins'
  'lib32-libidn11: for voice support'
  'libpulse: for PulseAudio support'
  'mesa-libgl: For Intel, Radeon, Nouveau support'
  'nvidia-libgl: for NVIDIA support'
  'nvidia-utils: for NVIDIA support')
makedepends=('cmake' 'gcc' 'python2-virtualenv' 'python2-pip' 'mercurial')
conflicts=('firestorm-bin' 'firestorm-beta' 'firestorm-nightly')
provides=('firestorm')

source=("$pkgname"::'hg+https://hg.firestormviewer.org/phoenix-firestorm-release' 'autovars' 'firestorm.desktop' 'firestorm.launcher' 'dontTarSelf.patch')
md5sums=('SKIP' '7245883fbdba303d4f827f60907574c6' '5e3dade65948533ff8412da776029179' '3daa9e24492337e62bcac318df4ab370' '5ce1e87b6cbdd300d52906de7444f264')

pkgver() {
	cd "$pkgname"
	printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}

prepare() {
	virtualenv2 "$pkgname"
	export AUTOBUILD_VARIABLES_FILE="$srcdir/autovars"

	cd "$pkgname"
	source bin/activate
	pip install --upgrade autobuild

	autobuild configure -A 64 -c ReleaseFS_open -- -DLL_TESTS:BOOL=FALSE
    cd indra/newview
	patch -Np0 -i "$srcdir/dontTarSelf.patch"
}

build() {
    export AUTOBUILD_VARIABLES_FILE="$srcdir/autovars"
    cd "$pkgname"
    source bin/activate
    
    autobuild build -A 64 -c ReleaseFS_open -- -Dchan=Linux
}

package() {
    mkdir -p "$pkgdir/opt"
    mkdir -p "$pkgdir/usr/share/applications"
    
    mv "$pkgname/build-linux-x86_64/newview/packaged" "$pkgdir/opt/firestorm"
    
    install -Dm644 "firestorm.desktop" "$pkgdir/usr/share/applications/firestorm.desktop"
    install -Dm755 "firestorm.launcher" "$pkgdir/usr/bin/firestorm"
}