updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / imprudence-secondlife-bin / PKGBUILD
blob64d30f4b1480f0f22dffda05143812c9b543d1f5
1 # Contributor: Martin Berkemeier <phobinator[at]googlemail[dot]de>
3 pkgname=imprudence-secondlife-bin
4 pkgver=1.3.2
5 pkgrel=1
6 _arch=x86
7 pkgdesc="Second Life is a 3-D virtual world entirely built and owned by its residents. Imprudence is alternative viewer(native 32bit)"
8 url="http://blog.kokuaviewer.org"
9 license=('GPL')
10 depends=('alsa-lib' 'apr-util' 'freealut' 'gnome-vfs' 'gtk2' 'libgl' 'libidn' 'libjpeg6' 'libpng12' 'mesa' 'nss' 'sdl')
11 [ "$CARCH" = "x86_64" ] && depends=('lib32-freealut' 'lib32-gtk2' 'lib32-libgl' 'lib32-libidn' 'lib32-libjpeg6' 'lib32-libpng12' 'lib32-libxdamage' 'lib32-mesa' 'lib32-nss')
12 [ "$CARCH" = "x86_64" ] && optdepends=('lib32-nvidia-utils: GL support for NVIDIA drivers')
13 arch=('i686' 'x86_64')
14 conflicts=('imprudence-secondlife-bin-x86_64')
15 install=imprudence-secondlife.install
16 source=('imprudence-secondlife.desktop' 'imprudence-secondlife.launcher' \
17 "http://imprudence.googlecode.com/files/Imprudence-${pkgver}-Linux-${_arch}.tar.bz2")
18 md5sums=('ac7422e51eefdeb2f11910e36ad0d2d2'
19          '7d656225184e49679b6ab82fb7f79b55'
20          '4d2708955ab5f80fa34aea12d5ad8662')
22 build() {
23     cd $srcdir;
25     # Rename Data Directory
26     mv Imprudence-${pkgver}-Linux-${_arch}/ imprudence-secondlife
28     # Install Desktop File
29     install -D -m644 $srcdir/imprudence-secondlife.desktop \
30         $pkgdir/usr/share/applications/imprudence-secondlife.desktop
32     # Install Icon File
33     install -D -m644 $srcdir/imprudence-secondlife/imprudence_icon.png \
34         $pkgdir/usr/share/pixmaps/imprudence_icon.png
36     # Install Launcher
37     install -D -m755 $srcdir/imprudence-secondlife.launcher \
38         $pkgdir/usr/bin/imprudence-secondlife
40     # Move Data to Destination Directory
41     install -d $pkgdir/opt/
42     mv imprudence-secondlife/ $pkgdir/opt/
44     # Change Permissions of files to root:games
45     chown -R root:games $pkgdir/opt/imprudence-secondlife
46 #    chmod -R g+rw $pkgdir/opt/imprudence-secondlife
47     chmod -R g+r $pkgdir/opt/imprudence-secondlife
49     # Make Binary Group-Executable
50     chmod g+x $pkgdir/opt/imprudence-secondlife/imprudence