blob: 8314b5ae7f21f8976a188563080c041a5080286f (
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
|
pkgname=janusvr
pkgdesc='3D VR internet browser'
url='http://www.dgp.toronto.edu/~mccrae/projects/firebox/'
pkgver=59.8
pkgrel=1
arch=('x86_64')
license=('custom')
janusver=$(curl http://www.janusvr.com/version.html)
source=("janusvr${janusver}.gz::http://downloads.janusvr.com/janusvr_linux.tar.gz"
"janusvr.sh"
"https://janusvr.com/images/logos/logoonly.png"
"janusvr.desktop")
depends=('alsa-lib' 'libxt' 'libnotify' 'mime-types' 'nss' 'gtk2' 'sqlite' 'dbus-glib' 'qt5-multimedia')
optdepends=("oculus-rift-sdk-jherico-git: For libOVR including a fix for mesa. Don't forget to Replace /opt/janusvr/libOVRRT64_0.so.5.0.1")
makedepends=("imagemagick") #only for converting the icon
pkgver() {
echo "$janusver"
}
package() {
install -d "$pkgdir/opt"
install -d "$pkgdir/usr/share/icons/"
install -d "$pkgdir/usr/share/applications"
cp -ra JanusVRBin/ "$pkgdir/opt/janusvr"
# chmod a+x "$pkgdir/opt/janusvr"/*.sh
chmod a+x "$pkgdir/opt/janusvr/janusvr"
chmod -R a+rX "$pkgdir/opt/janusvr"
install -d "$pkgdir/usr/bin"
install -m755 "$srcdir/janusvr.sh" "$pkgdir/usr/bin/janusvr"
# segfaults for me with mesa with OpenCL. WAT
MAGICK_OCL_DEVICE=OFF convert "$srcdir/logoonly.png" -resize 128x128 "$pkgdir/usr/share/icons/janusvr.png" # screw the aspect ratio
install "${srcdir}/janusvr.desktop" "${pkgdir}/usr/share/applications/janusvr.desktop"
# CAUTION: Everyone in the group "games" can replace the whole thing e.g. with malware
# But for now there doesn't seem to be a better way, because it needs write accessess error_log.txt in its base directory, also temporary files are created there....
chown -R root:games "${pkgdir}"/opt/janusvr
chmod -R g+w "${pkgdir}"/opt/janusvr
rm -f "$pkgdir"/opt/janusvr/libstdc++.so.6
#mv "$pkgdir/opt/janusvr/libOVRRT64_0.so.5.0.1" "$pkgdir/opt/janusvr/libOVRRT64_0.so.5.0.1.bak"
#install -m755 "$srcdir/libovr.so" "$pkgdir/opt/janusvr/libOVRRT64_0.so.5.0.1"
}
md5sums=('SKIP'
'c05bb2fbfce12c89db560ed8b8bb036a'
'c2dd07b34a1f0f25ff619c12dd12ee9b'
'a8a2ce8e4dfa4e4e87a6af811b5627a4')
|