1 # Contributor/Maintainer: ilikenwf/Matt Parnell <parwok@gmail.com>
6 pkgdesc="Live TV Viewer (Mostly Japanese Streams)...Server only works on windows version"
9 url="http://www.v2p.jp/video/english/"
10 depends=('alsa-lib' 'gtk2' 'cairo' 'pango' 'libx11' 'libpng')
12 source=("http://www.v2p.jp/video/Viewer/Linux/32bits/LKeyHoleTV${pkgver}-32bits.tar.gz"
15 md5sums=('7db6862554a1db0d0a87bd3b8012617b'
16 '905a8951b107054187d7228cb390ce62'
17 'ae00db79eb19f3f1515f873852c903d2')
19 [ "$CARCH" = "x86_64" ] && source=("http://www.v2p.jp/video/Viewer/Linux/64bits/LKeyHoleTV${pkgver}-64bits.tar.gz"
22 && md5sums=('e67c914267dafbb1b93181359b296b66'
23 '905a8951b107054187d7228cb390ce62'
24 'ae00db79eb19f3f1515f873852c903d2')
29 cd ${srcdir}/KeyHoleTV
32 sed -i 's/\/usr\/bin\/install/\/bin\/install/' ${srcdir}/KeyHoleTV/ALSA/Makefile || return 1
33 sed -i 's/\/usr\/bin\/install/\/bin\/install/' ${srcdir}/KeyHoleTV/en_US/Makefile || return 1
34 sed -i 's/\/usr\/bin\/install/\/bin\/install/' ${srcdir}/KeyHoleTV/DSP/Makefile || return 1
35 sed -i 's/\/usr\/bin\/install/\/bin\/install/' ${srcdir}/KeyHoleTV/ESD/Makefile || return 1
36 sed -i 's/\/usr\/bin\/install/\/bin\/install/' ${srcdir}/KeyHoleTV/ja_JP/Makefile || return 1
38 mkdir -p ${pkgdir}/{usr/{bin,share/{applications,pixmaps}},opt/LKeyHoleTV} || return 1
40 # Audio Interface: ALSA should work
41 # ...try DSP or ESD if it doesn't by replacing ALSA appropriately below
43 cd ${srcdir}/KeyHoleTV/ALSA
46 make install || return 1 # Weird, but correct
48 # Language: unless you want Japanese
49 # ...don't replace en_US with ja_JP
51 cd ${srcdir}/KeyHoleTV/en_US
54 make install || #Weird, but correct
56 # Time to install the program itself
58 /bin/install -c ${srcdir}/KeyHoleTV/.KeyHoleTV ${pkgdir}/opt/LKeyHoleTV/
59 /bin/install -c ${srcdir}/KeyHoleTV/lkeyholetv ${pkgdir}/opt/LKeyHoleTV/
60 cp -r ${srcdir}/KeyHoleTV/.KeyHoleTV ${pkgdir}/opt/LKeyHoleTV/
61 /bin/install -c ${srcdir}/lkeyholetv ${pkgdir}/usr/bin/
64 install -m644 ${srcdir}/lkeyholetv.desktop ${pkgdir}/usr/share/applications/ || return 1
65 install -m644 ${srcdir}/KeyHoleTV/keyholetv.xpm ${pkgdir}/usr/share/pixmaps/keyholetv.xpm || return 1
68 Copyright 2006 by Takashi Kosaka OISEYER(C) All rights reserved.
70 Redistribution and use in binary forms, with or without
71 modification, are permitted provided that the following conditions
74 1. Redistributions in binary form must reproduce the above copyright
75 notice, this list of conditions and the following disclaimer in the
76 documentation and/or other materials provided with the distribution.
78 THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
79 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
80 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
81 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
82 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
83 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
84 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
85 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
86 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
87 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF