# tvtime 1.0.2
# ============
# Before you begin here, at least read the supported cards page to make sure
# your capture card is supported. I have an ivtv-based card which is an
# mpeg2 encoder, but since tvtime can't decode the signal on the fly (like
# xawtv and mythtv can), you can't use tvtime with this type of card.
cd
test -f installed/tvtime-1.0.2.tar.gz &&
mv installed/tvtime-1.0.2.tar.gz .
test ! -f tvtime-1.0.2.tar.gz &&
wget http://download.sf.net/tvtime/tvtime-1.0.2.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "tvtime-*" -exec rm -r {} \;
tar xzvf ~/tvtime-1.0.2.tar.gz
cd tvtime-1.0.2
test $UID = 0 && chown -R root:root .
./configure --disable-nls
## If make fails with an error like this:
# tvtime-utils.o(.text+0x603): In function `setup_utf8':
# /home/jason/src/tvtime-1.0.2/src/utils.c:649: undefined reference to
# `libiconv_open'
## re-run it like this:
# make LIBS=-liconv
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/tvtime-*.tar.*
mv tvtime-1.0.2.tar.gz installed/
# /usr/local/share/pixmaps/tvtime.png can be used as a desktop icon
# If you ever want to uninstall tvtime, this should do it:
cd
su
test -d src/tvtime-* && ( cd src/tvtime-* ; make uninstall )
( cd /usr/local/bin ; rm -f tvtime tvtime-command tvtime-configure \
tvtime-scanner )
test -d /usr/local/etc/tvtime && rm -r /usr/local/etc/tvtime
( cd /usr/local/man/de/man1 ; rm -f tvtime.1 tvtime-command.1 \
tvtime-configure.1 tvtime-scanner.1 )
( cd /usr/local/man/de/man5 ; rm -f stationlist.xml.5 tvtime.xml.5 )
( cd /usr/local/man/es/man1 ; rm -f tvtime.1 tvtime-command.1 \
tvtime-configure.1 tvtime-scanner.1 )
( cd /usr/local/man/es/man5 ; rm -f stationlist.xml.5 tvtime.xml.5 )
( cd /usr/local/man/man1 ; rm -f tvtime.1 tvtime-command.1 \
tvtime-configure.1 tvtime-scanner.1 )
( cd /usr/local/man/man5 ; rm -f stationlist.xml.5 tvtime.xml.5 )
rm -f /usr/local/share/applications/net-tvtime.desktop
find /usr/local/share/icons/hicolor -type f -name tvtime.png -exec rm {} \;
find /usr/local/share/locale -type f -name "tvtime.mo" -exec rm {} \;
( cd /usr/local/share/pixmaps ; rm -f tvtime.png tvtime.xpm )
test -d /usr/local/share/tvtime && rm -r /usr/local/share/tvtime
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "tvtime-*" -exec rm -r {} \;
rm -f ~/installed/tvtime-*.tar.*