1 # Contributor: Christian Rapp <saedelaere.tv@googlemail.com>
5 pkgdesc="TV-Viewer is a frontend to watch and record tv. It supports analog tv and devices with a build-in hardware MPEG-2 encoder. This package provides the latest source code."
7 url="http://tv-viewer.sourceforge.net/"
9 depends=('ivtv-utils' 'mplayer' 'xdg-utils' 'glibc' 'libxdmcp' 'libxau' 'libxcb' 'libx11')
10 makedepends=('bzr' 'wget')
12 'tkimg: provides png support for tk < 8.6'
14 #tkimg: If using tk < 8.6 this provides png support
19 # Get correct version for CARCH
20 if [ $CARCH = "i686" ]; then
22 source=(http://downloads.sourceforge.net/project/tv-viewer/tv-viewer_tclkit/tv-viewer-0.8.2x/tclkit-8.5.9)
23 md5sums=('1c5bd92adf118351522e9bbb8ffffd6e')
25 if [ $CARCH = "x86_64" ]; then
26 tclkit="tclkit-8.5.9-2-x86_64"
27 source=(http://downloads.sourceforge.net/project/tv-viewer/tv-viewer_tclkit/tv-viewer-0.8.2x/tclkit-8.5.9-2-x86_64)
28 md5sums=('a6d71ff6784543f6ccffa8d657a7809e')
31 _bzrtrunk=bzr://tv-viewer.bzr.sourceforge.net/bzrroot/tv-viewer/trunk
36 msg "Connecting to tv-viewer bzr server..."
38 if [ -d "$srcdir/$_bzrmod" ] ; then
41 msg "The local files are updated."
42 msg "bzr checkout done or server timeout"
43 msg "configuring build system..."
44 chmod a+x ../${tclkit}
45 cp -f ../${tclkit} extensions/tclkit/
46 chmod a+x ./configure.tcl
47 extensions/tclkit/${tclkit} ./configure.tcl --prefix="$pkgdir/usr" --bintarget="/usr/share/tv-viewer" --enable-tclkit=yes --nodepcheck --quiet
48 msg "starting make..."
49 chmod a+x ./install.tcl
50 extensions/tclkit/${tclkit} ./install.tcl --quiet
52 bzr checkout $_bzrtrunk
54 msg "bzr checkout done or server timeout"
55 msg "configuring build system..."
56 chmod a+x ../${tclkit}
57 cp -f ../${tclkit} extensions/tclkit/
58 chmod a+x ./configure.tcl
59 extensions/tclkit/${tclkit} ./configure.tcl --prefix="$pkgdir/usr" --bintarget="/usr/share/tv-viewer" --enable-tclkit=yes --nodepcheck --quiet
60 msg "starting make..."
61 chmod a+x ./install.tcl
62 extensions/tclkit/${tclkit} ./install.tcl --quiet