1 pkgname=imprudence-beta-bin
4 _pkgbasever=1.4.0_beta2
7 [ "$CARCH" = "x86_64" ] && _arch='64bit_repacked'
8 pkgdesc="Second Life is a 3-D virtual world entirely built and owned by its residents. Imprudence is an alternative viewer (beta version)."
9 url="http://www.kokuaviewer.org"
11 depends=('alsa-lib' 'apr-util' 'freealut' 'gnome-vfs' 'gtk2' 'gstreamer0.10' 'libgl' 'libidn' 'libjpeg7' 'libpng12' 'mesa' 'nss' 'sdl')
12 optdepends=('pulseaudio>=0.9.21')
13 install=imprudence-beta-bin.install
14 source=('imprudence-beta-bin.desktop' 'imprudence-beta-bin.launcher' \
15 "http://imprudence.googlecode.com/files/imprudence_${_pkgbasever}_${_arch}.tar.gz")
16 sha256sums=('83dfd722dae1ad262f01bb570c542a0dc16ca231e148e266db2af6292a1d8426'
17 '9c5a2014b6fc63f104546a012365a94f9633fdec7dd8174305872a8167ee9c17'
18 '1cf6abf467dc95fefd0886b56a42ec85cfe8c3840edc767d9a72c1c4840f4656')
19 [ "$CARCH" = "x86_64" ] && sha256sums=(
20 '83dfd722dae1ad262f01bb570c542a0dc16ca231e148e266db2af6292a1d8426'
21 '9c5a2014b6fc63f104546a012365a94f9633fdec7dd8174305872a8167ee9c17'
22 '5ff76b57734ca3be8e64e7e0d8c1ce67c1844421274e36f9cd59e7e099df5052')
23 # There's probably a cleaner way to do this
24 [ "$CARCH" = "x86_64" ] && noextract=("imprudence_${_pkgbasever}_${_arch}.tar.gz")
29 if [ "$CARCH" = "x86_64" ]; then
30 mkdir imprudence_${_pkgbasever}_${_arch}
31 tar -xzf imprudence_${_pkgbasever}_${_arch}.tar.gz \
32 -C imprudence_${_pkgbasever}_${_arch}
35 # Rename Data Directory
36 mv imprudence_${_pkgbasever}_${_arch}/ imprudence-beta-bin
38 # Install Desktop File
39 install -D -m644 $srcdir/imprudence-beta-bin.desktop \
40 $pkgdir/usr/share/applications/imprudence-beta-bin.desktop
43 # Changed name to beta so the release version can co-exist
44 install -D -m644 $srcdir/imprudence-beta-bin/imprudence_icon.png \
45 $pkgdir/usr/share/pixmaps/imprudence_beta_icon.png
48 install -D -m755 $srcdir/imprudence-beta-bin.launcher \
49 $pkgdir/usr/bin/imprudence-beta-bin
51 # Move Data to Destination Directory
52 install -d $pkgdir/opt/
53 mv imprudence-beta-bin/ $pkgdir/opt/
55 # Change Permissions of files to root:games
56 chown -R root:games $pkgdir/opt/imprudence-beta-bin
57 chmod -R g+r $pkgdir/opt/imprudence-beta-bin
59 # Make Binary Group-Executable
60 chmod g+x $pkgdir/opt/imprudence-beta-bin/imprudence