summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f5ea6618f6123453ed0d0b08c1843e8374fc45be (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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Maintainer: Alex Tharp <alex at toastercup dot io>
pkgname=coolvlviewer
pkgver=1.32.2.9
pkgrel=1
pkgdesc="A third-party viewer for Second Life and OpenSim grids. (built from source)"
url="http://sldev.free.fr"
license=('GPL-2.0-only')
depends=(
  'apr-util'
  'atk'
  'gconf'
  'glib2>=2.32'
  'glu'
  'lib32-libidn'
  'lib32-libsndfile'
  'lib32-util-linux'
  'lib32-zlib'
  'libcups'
  'libgl'
  'libgl'
  'libidn'
  'libxcomposite'
  'libxcursor'
  'libxrandr'
  'libxss'
  'libxtst'
  'mesa'
  'pangox-compat'
  'sdl'
)
optdepends=(
  'alsa-lib: for ALSA support'
  'gst-plugins-bad: for video support'
  'gst-plugins-good: for video support'
  'gst-plugins-ugly: for video support'
  'lib32-alsa-lib: for ALSA support'
  'lib32-freealut: for OpenAL support'
  'lib32-libidn11: for voice support'
  'libpulse: for PulseAudio support'
  'nvidia-utils: for NVIDIA support'
  'pepper-flash: for inworld Flash support'
  'wine: for SLVoice support'
)
makedepends=(
  'cmake'
  'bison'
  'flex'
  'python'
  'make'
  'bzip2'
  'glibc'
  'libx11'
  'libgl'
  'libxrender'
  'libidn'
  'libxinerama'
  'lib32-libxinerama'
)
arch=('x86_64')
conflicts=('coolvlviewer-bin')
provides=('coolvlviewer')
install=coolvlviewer.install
source=(
  "http://sldev.free.fr/sources/CoolVLViewer-src-${pkgver//./}.tar.bz2"
  "coolvlviewer.desktop"
  "coolvlviewer.launcher"
)
sha1sums=(
  '5670b4b808d77e85b7692c6709df178b6e01c5ee'
  '6336a03697c321495c3c9aacc57274b4a054f08a'
  '3ef1284a00a4437e4c34f809311ee0672604ef04'
)

build() {
  cd $srcdir/linden
  ./linux-build.sh
}

package() {
	# Install Desktop File
  install -D -m644 $srcdir/coolvlviewer.desktop \
    $pkgdir/usr/share/applications/coolvlviewer.desktop

  # Install Icon File
  install -D -m755 $srcdir/linden/indra/viewer-linux-x86_64-release/newview/CoolVLViewer-x86_64-$pkgver/cvlv_icon.png \
    $pkgdir/usr/share/pixmaps/clvl_icon.png

  # Install Launcher
  install -D -m755 $srcdir/coolvlviewer.launcher \
    $pkgdir/usr/bin/coolvlviewer

  # Install License
  install -D -m644 $srcdir/linden/indra/viewer-linux-x86_64-release/newview/CoolVLViewer-x86_64-$pkgver/licenses.txt \
    $pkgdir/usr/share/licenses/$pkgname/LISENSE

  # Move Data to Destination Directory
  mv $srcdir/linden/indra/viewer-linux-x86_64-release/newview/CoolVLViewer-x86_64-$pkgver/ $srcdir/coolvlviewer
  install -d $pkgdir/opt/
  mv coolvlviewer/ $pkgdir/opt/

  # Change Permissions of files to root:games
  chown -R root:games $pkgdir/opt/coolvlviewer
  chmod -R g+rw $pkgdir/opt/coolvlviewer

  # Make Binary Group-Executable
  chmod g+x $pkgdir/opt/coolvlviewer/cool_vl_viewer
}