1 # Maintainer: Tayhe <admin@tayhe.com>
2 # contributors: Tomas A. Schertel <tomasΘarchlinux-br·org>
4 if [ $(uname -m) = "x86_64" ] ; then
13 pkgdesc="Watch the world's leading TV channels in the highest quality plus your favourite web channels, all in one free player"
14 url="http://www.livestation.com/"
17 install=($pkgname.install)
19 source=("http://updates.livestation.com/releases/Livestation-${pkgver}-i386.run"
22 'livestation.install')
24 if [ $_arch = "x86_64" ] ; then
25 depends=('lib32-alsa-lib' 'lib32-e2fsprogs' 'lib32-expat' 'lib32-fontconfig' 'lib32-freetype2' \
26 'lib32-gcc-libs' 'lib32-glib2' 'lib32-glibc' 'lib32-libice' 'lib32-libpng' 'lib32-libsm' \
27 'lib32-libstdc++5' 'lib32-libx11' 'lib32-libxau' 'lib32-libxcb' 'lib32-libxdmcp' 'lib32-libxext' \
28 'lib32-libxi' 'lib32-libxrandr' 'lib32-libxrender' 'lib32-mesa' 'lib32-pcre' 'lib32-zlib')
33 md5sums=('c723438f46d5fa1bf1d2e77fc6ab38b8'
34 '5e7402591995dbdce534f77b1595ccf1'
35 '0ef021ef135773df9da6f48f8932951d'
36 '6c7ad684e8749b503241cef3afc62c46')
40 sh "Livestation-${pkgver}-i386.run" --check || return 1
43 echo yes | sh "Livestation-${pkgver}-i386.run" --target "$srcdir" \
44 --nox11 --noexec &>/dev/null || return 1
46 # Copy desktop icons and desktop links
47 install -d $pkgdir/opt/livestation || return 1
48 install -m 755 $srcdir/i386/Livestation $pkgdir/opt/livestation/ || return 1
49 install -m 755 $srcdir/i386/Livestation.bin $pkgdir/opt/livestation/ || return 1
50 install -m 755 $srcdir/i386/README $pkgdir/opt/livestation/ || return 1
51 install -m 755 $srcdir/i386/EULA $pkgdir/opt/livestation/ || return 1
52 install -m 755 $srcdir/i386/COPYING $pkgdir/opt/livestation/ || return 1
53 install -m 755 $srcdir/i386/COPYING.LESSER $pkgdir/opt/livestation/ || return 1
54 install -m 755 $srcdir/i386/qt.conf $pkgdir/opt/livestation/ || return 1
56 install -d $pkgdir/usr/share/pixmaps || return 1
57 install -m 644 livestation.png $pkgdir/usr/share/pixmaps/ || return 1
58 install -d $pkgdir/usr/share/applications/ || return 1
59 install -m 644 livestation.desktop $pkgdir/usr/share/applications || return 1
61 # Install image formats plugins
62 install -d $pkgdir/opt/livestation/plugins/imageformats/ || return 1
63 install -m 755 $srcdir/i386/plugins/imageformats/libqgif.so $pkgdir/opt/livestation/plugins/imageformats/ || return 1
64 install -m 755 $srcdir/i386/plugins/imageformats/libqico.so $pkgdir/opt/livestation/plugins/imageformats/ || return 1
65 install -m 755 $srcdir/i386/plugins/imageformats/libqjpeg.so $pkgdir/opt/livestation/plugins/imageformats/ || return 1
66 install -m 755 $srcdir/i386/plugins/imageformats/libqmng.so $pkgdir/opt/livestation/plugins/imageformats/ || return 1
67 install -m 755 $srcdir/i386/plugins/imageformats/libqsvg.so $pkgdir/opt/livestation/plugins/imageformats/ || return 1
68 install -m 755 $srcdir/i386/plugins/imageformats/libqtiff.so $pkgdir/opt/livestation/plugins/imageformats/ || return 1
70 # Install QT libraries and replace built-in ones
71 install -d $pkgdir/opt/livestation/lib/ || return 1
72 install -m 755 $srcdir/i386/lib/libavcodec.so.52 $pkgdir/opt/livestation/lib/ || return 1
73 install -m 755 $srcdir/i386/lib/liblive555.so $pkgdir/opt/livestation/lib/ || return 1
74 install -m 755 $srcdir/i386/lib/libQtNetwork.so.4 $pkgdir/opt/livestation/lib/ || return 1
75 install -m 755 $srcdir/i386/lib/libssl.so.0.9.8 $pkgdir/opt/livestation/lib/ || return 1
76 install -m 755 $srcdir/i386/lib/libavformat.so.52 $pkgdir/opt/livestation/lib/ || return 1
77 install -m 755 $srcdir/i386/lib/libopenal.so.0 $pkgdir/opt/livestation/lib/ || return 1
78 install -m 755 $srcdir/i386/lib/libQtOpenGL.so.4 $pkgdir/opt/livestation/lib/ || return 1
79 install -m 755 $srcdir/i386/lib/libswscale.so.0 $pkgdir/opt/livestation/lib/ || return 1
80 install -m 755 $srcdir/i386/lib/libavutil.so.50 $pkgdir/opt/livestation/lib/ || return 1
81 install -m 755 $srcdir/i386/lib/libQtCore.so.4 $pkgdir/opt/livestation/lib/ || return 1
82 install -m 755 $srcdir/i386/lib/libQtWebKit.so.4 $pkgdir/opt/livestation/lib/ || return 1
83 install -m 755 $srcdir/i386/lib/libXtst.so.6 $pkgdir/opt/livestation/lib/ || return 1
84 install -m 755 $srcdir/i386/lib/libcrypto.so.0.9.8 $pkgdir/opt/livestation/lib/ || return 1
85 install -m 755 $srcdir/i386/lib/libQtGui.so.4 $pkgdir/opt/livestation/lib/ || return 1
86 install -m 755 $srcdir/i386/lib/libQtXml.so.4 $pkgdir/opt/livestation/lib/ || return 1
88 # Creating the launcher
89 install -d $pkgdir/usr/bin/ || return 1
90 ln -s "/opt/livestation/Livestation" "$pkgdir/usr/bin/Livestation" || return 1