aboutsummaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2010-05-11 15:00:30 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 15:00:30 +0200
commita2fcc3fcf806f18ff37d29868b9ee9dce81679f8 (patch)
treefb05f29386069576a76ab22dbd2a5e18c670229b /multimedia
parentafce3c05480d54686a2e44958822bfb4f8c0ca76 (diff)
multimedia/tvtime: Initial import
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/tvtime/README7
-rw-r--r--multimedia/tvtime/doinst.sh9
-rw-r--r--multimedia/tvtime/slack-desc11
-rw-r--r--multimedia/tvtime/tvtime.SlackBuild66
-rw-r--r--multimedia/tvtime/tvtime.info8
5 files changed, 101 insertions, 0 deletions
diff --git a/multimedia/tvtime/README b/multimedia/tvtime/README
new file mode 100644
index 0000000000000..6247fe76cc0d9
--- /dev/null
+++ b/multimedia/tvtime/README
@@ -0,0 +1,7 @@
+tvtime is a high quality television application for use with video capture
+cards on Linux systems. tvtime processes the input from a capture card and
+displays it on a computer monitor or projector.
+
+Supported cards and troubleshooting information can be found at the project's
+homepage.
+
diff --git a/multimedia/tvtime/doinst.sh b/multimedia/tvtime/doinst.sh
new file mode 100644
index 0000000000000..eeb3f3e78aaa3
--- /dev/null
+++ b/multimedia/tvtime/doinst.sh
@@ -0,0 +1,9 @@
+
+if [ -x usr/bin/update-desktop-database ]; then
+ usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x usr/bin/gtk-update-icon-cache ]; then
+ gtk-update-icon-cache -f -t usr/share/icons/hicolor &> /dev/null
+fi
+
diff --git a/multimedia/tvtime/slack-desc b/multimedia/tvtime/slack-desc
new file mode 100644
index 0000000000000..f9f711ef8aad9
--- /dev/null
+++ b/multimedia/tvtime/slack-desc
@@ -0,0 +1,11 @@
+tvtime: tvtime
+tvtime:
+tvtime: tvtime is a high quality television application for use with
+tvtime: video capture cards on Linux systems. tvtime processes the
+tvtime: input from a capture card and displays it on a computer
+tvtime: monitor or projector.
+tvtime:
+tvtime: Homepage: http://tvtime.sourceforge.net
+tvtime:
+tvtime:
+tvtime:
diff --git a/multimedia/tvtime/tvtime.SlackBuild b/multimedia/tvtime/tvtime.SlackBuild
new file mode 100644
index 0000000000000..f58c3c41f2769
--- /dev/null
+++ b/multimedia/tvtime/tvtime.SlackBuild
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+# Slackware build script for tvtime
+# Written by Kyle Guinn
+
+# Modified by the SlackBuilds.org project
+
+VERSION=1.0.1
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=`pwd`
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-tvtime
+OUTPUT=${OUTPUT:-/tmp}
+
+# The INSTALL file recommends avoiding the use of the "-march" flag.
+# If you need it, change the appropriate lines below.
+if [ "$ARCH" = "i486" ]; then
+ #SLKCFLAGS="-march=i486 -mtune=i686"
+ SLKCFLAGS=""
+elif [ "$ARCH" = "i686" ]; then
+ #SLKCFLAGS="-march=i686 -mtune=i686"
+ SLKCFLAGS=""
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP || exit 1
+rm -rf tvtime-$VERSION
+tar -xzvf $CWD/tvtime-$VERSION.tar.gz || exit 1
+cd tvtime-$VERSION || exit 1
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-x \
+ || exit 1
+
+make || exit 1
+make install-strip DESTDIR=$PKG || exit 1
+
+# Fix icon path in .desktop file so that it will show in KDE
+sed -i 's%Icon=tvtime.png%Icon=/usr/share/pixmaps/tvtime.png%g' \
+ $PKG/usr/share/applications/net-tvtime.desktop || exit 1
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in `find . -type l` ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
+mkdir -p $PKG/usr/doc/tvtime-$VERSION
+cp -a ABOUT-NLS AUTHORS COPYING* ChangeLog INSTALL NEWS README docs/html \
+ $PKG/usr/doc/tvtime-$VERSION
+cat $CWD/tvtime.SlackBuild > $PKG/usr/doc/tvtime-$VERSION/tvtime.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/tvtime-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/multimedia/tvtime/tvtime.info b/multimedia/tvtime/tvtime.info
new file mode 100644
index 0000000000000..ec98923b3bb29
--- /dev/null
+++ b/multimedia/tvtime/tvtime.info
@@ -0,0 +1,8 @@
+PRGNAM="tvtime"
+VERSION="1.0.1"
+HOMEPAGE="http://tvtime.sourceforge.net/"
+DOWNLOAD="http://dl.sourceforge.net/tvtime/tvtime-1.0.1.tar.gz"
+MD5SUM="e7c7951fa1aabd15254cfbc17fe8a976"
+MAINTAINER="Kyle Guinn"
+EMAIL="elyk03@gmail.com"
+APPROVED="robw810"