summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ba3d604e4e72ed28f502998c96744ae32a4f4ab (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Maintainer: GordonGR <ntheo1979@gmail.com>

pkgname=singularityviewer-alpha
pkgver=1.8.9.8419
_pkgver=1_8_9_8419
pkgrel=1
pkgdesc="An exciting client for Second Life (secondlife) and OpenSim (opensimulator), which combines the look and feel of Viewer 1.23 with the latest and greatest of available technology. (nighly builds)"
url="http://www.singularityviewer.org/"
license=('custom')
arch=('x86_64')
depends=('apr' 'apr-util' 'gtk2' 'libgl' 'libidn' 'mesa' 'sdl' 'glu' 'pangox-compat' 'gconf' 'libxss' 'libxrandr' 'libxcomposite' 'libgl' 'lib32-zlib' 'libcups' 'atk' 'lib32-util-linux' 'lib32-libidn' 'libxcursor' 'libxtst' 'openal' 'expat' 'freealut')
optdepends=(
	'libpulse: for PulseAudio support'
	'alsa-lib: for ALSA support'
	'lib32-alsa-lib: for ALSA support'
	'nvidia-utils: for NVIDIA support' 
	'flashplugin: for inworld Flash support' 
	'gstreamer0.10: for video support, may need good, bad and ugly plugins'
	'pangox-compat: for media_plugin_webkit to work'
	'lib32-alsa-plugins: for voice')

conflicts=("singularityviewer" "singularityviewer-test")
replaces=("singularityviewer-test")
provides=("singularityviewer")

source=("https://bitbucket.org/router_gray/singularityviewer/downloads/Singularity_Beta_${_pkgver}_x86_64.tar.xz"
	"singularityviewer.desktop"
	"singularityviewer.launcher")
md5sums=('618bac59aa948ab5ef50b99bbd4c8ada'
         'f375ed0bc781ef5e880a9d5dbb29258a'
         'eb596f5cf7b6f2d0c55c0082fb99a905')

package() {
cd $srcdir

# Rename Data Directory
mv Singularity_Beta_${_pkgver}_x86_64 singularityviewer

# Remove old libraries
#cd $srcdir
cd singularityviewer/
cd lib64/
rm *openal*
rm *expat*
rm *apr*
rm *alut*
  
# Install Desktop File
install -D -m644 $srcdir/singularityviewer.desktop \
  $pkgdir/usr/share/applications/singularityviewer.desktop
  
# Install Icon File
install -D -m644 $srcdir/singularityviewer/viewer_icon.png \
  $pkgdir/usr/share/pixmaps/singularityviewer_icon.png
  
# Install Launcher
install -D -m755 $srcdir/singularityviewer.launcher \
  $pkgdir/usr/bin/singularityviewer

# Install License file
install -D -m755 $srcdir/singularityviewer/licenses.txt \
  $pkgdir/usr/share/licenses/$pkgname/LICENSE
    
# Move Data to Destination Directory
cd $srcdir
install -d $pkgdir/opt
mv singularityviewer $pkgdir/opt/
  
# Change Permissions of files to root:games
chown -R root:games $pkgdir/opt/singularityviewer
chmod -R g+rw $pkgdir/opt/singularityviewer

# Make Binary Group-Executable
chmod g+x $pkgdir/opt/singularityviewer/singularity

# Do not re-register the application with the desktop system at every launch, saves from locally installed desktop files.
sed -i 's|./refresh_desktop_app_entry.sh|#./refresh_desktop_app_entry.sh|' $pkgdir/opt/singularityviewer/singularity
}