updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / snowglobe-bin / PKGBUILD
blobc4ad861c42f17dc02a487a11ed50c0e416fa0168
1 # Contributor: Chaniyth
3 pkgname=snowglobe-bin
4 pkgver=1.4.2.3626
5 pkgrel=1
6 pkgdesc="Snowglobe is an open source Second Life-compatible viewer, built jointly by the open source community and Linden Lab. (Binary version)."
7 arch=('i686' 'x86_64')
8 url="http://www.secondlife.com/"
9 license=('GPL')
10 [ "$CARCH" = "i686"   ] && depends=('alsa-lib' 'apr-util' 'freealut' 'gtk2' 'libgl' 'libidn' 'libjpeg6' 'mesa' 'nss' 'sdl')
11 [ "$CARCH" = "x86_64" ] && depends=('alsa-lib' 'apr-util' 'lib32-atk'  'lib32-freealut' 'lib32-gtk2' 'libgl' 'lib32-libidn' 'lib32-libjpeg6' 'lib32-libxinerama' 'mesa' 'lib32-nss' 'sdl')
12 conflicts=('secondlife' 'secondlife-svn' 'secondlife-rc')
13 install=snowglobe.install
14 source=('snowglobe.desktop' 'snowglobe.launcher' \
15 "http://secondlife.com/developers/opensource/downloads/2009/1.4/3626/Snowglobe-i686-${pkgver}.tar.bz2")
16 md5sums=('c3e902258440b632b98d77af278533d6'
17          '7910a28a5ebe9babd990b21a128531fd'
18          'fe39b18edd88b677554dccf8b78d0b48')
20 build() {
21     cd $srcdir;
23     # Rename Data Directory
24     mv Snowglobe-i686-${pkgver}/ snowglobe
26     # Install Desktop File
27     install -D -m644 $srcdir/snowglobe.desktop \
28         $pkgdir/usr/share/applications/snowglobe.desktop
30     # Install Icon File
31     install -D -m644 $srcdir/snowglobe/snowglobe_icon.png \
32         $pkgdir/usr/share/pixmaps/snowglobe.png
34     # Install Launcher
35     install -D -m755 $srcdir/snowglobe.launcher \
36         $pkgdir/usr/bin/snowglobe
38     # Move Data to Destination Directory
39     install -d $pkgdir/opt/
40     mv snowglobe/ $pkgdir/opt/
42     # Change Permissions of files to root:games
43     chown -R root:games $pkgdir/opt/snowglobe
44     chmod -R g+rw $pkgdir/opt/snowglobe
46     # Make Binary Group-Executable
47     chmod g+x $pkgdir/opt/snowglobe/snowglobe