1 # Contributor: Medical-Wei/Lanny Bikcin <medicalwei at gmail dot com>
6 pkgdesc="Open metaverse viewer is a project aimed to package the Second Life(tm) viewer for Linux distributions."
8 url="http://omvviewer.byteme.org.uk/index.shtml"
10 depends=('alsa-lib' 'apr-util' 'freealut' 'gtk2' 'libgl' 'libidn' 'mesa' 'nss' 'sdl' 'openjpeg' 'xmlrpc-epi' 'c-ares' 'ttf-dejavu' 'omvviewer-artwork-git' 'ndofdev' 'libpng')
11 makedepends=('git' 'gcc' 'make' 'patch' 'quilt' 'python' 'bison' 'flex' 'cmake' 'boost')
12 provides=('secondlife')
13 conflicts=('omvviewer')
14 source=('omvviewer.desktop' 'viewericon.xpm' 'use_archlinux-included_fonts.diff' 'libpng14-patch.diff' 'gstreamer-0.10.26-patch.diff' 'boost-1.42.0-1-patch.diff')
15 md5sums=('a80b577f1aa8c01ea0e62476626ab4c1'
16 'd1a48ab3659a3775704cd86ccf804942'
17 'de2d6f866e4b29f67b8cb1deb28f5210'
18 '4943e5576b659bf81a33dfa9119b057f'
19 'e95a0d33a2b91f93d8ab44f43997137d'
20 '79be764dc4931940dee83e1022c3d0ba')
21 optdepends=('gstreamer0.10: in-world movie playback')
23 _gitroot="git://git.byteme.org.uk/home/git/slviewer.git"
29 msg "Connecting to GIT server..."
30 if [[ -d $_gitname ]]; then
31 (cd $_gitname && git pull origin)
33 git clone $_gitroot $_gitname
34 (cd $_gitname && git checkout -b linux origin/linux)
36 msg "GIT checkout done or server timeout"
38 msg "Cloning source code"
39 rm -rf $_gitname-build
40 cp -R $_gitname $_gitname-build
43 msg "Applying patches for ArchLinux"
44 patch -p1 < $srcdir/gstreamer-0.10.26-patch.diff
45 patch -p1 < $srcdir/use_archlinux-included_fonts.diff
46 patch -p1 < $srcdir/libpng14-patch.diff
47 patch -p1 < $srcdir/boost-1.42.0-1-patch.diff
49 msg "Starting make..."
50 make patch || return 1
51 # In order to make it build, I used a dirty work which disables -Werror
52 make configure DATA_LOCATION=/usr/share/omvviewer BINARY_LOCATION=/usr/bin BINARY_NAME="omvviewer -DGCC_DISABLE_FATAL_WARNINGS:BOOL=TRUE" MOZLIB=FALSE || return 1
53 make build || return 1
54 make DESTDIR=$pkgdir install || return 1
56 # Install Desktop File
57 install -D -m644 $srcdir/omvviewer.desktop \
58 $pkgdir/usr/share/applications/omvviewer.desktop
61 install -D -m644 $srcdir/viewericon.xpm \
62 $pkgdir/usr/share/pixmaps/viewericon.xpm