diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-09-18 12:07:57 -0400 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-09-21 22:09:40 -0500 |
commit | e1ebc97c6c09e31b11ee774293054cb2bb7b3f45 (patch) | |
tree | 9357bde65702c98f21de62b711a7d83e131ffe02 /multimedia/huludesktop | |
parent | b92f4d6ca7aee92fdb44d8db30ca57b74acfca2c (diff) |
multimedia/huludesktop: Added (Lean-back viewing for your PC)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'multimedia/huludesktop')
-rw-r--r-- | multimedia/huludesktop/README | 5 | ||||
-rw-r--r-- | multimedia/huludesktop/doinst.sh | 3 | ||||
-rw-r--r-- | multimedia/huludesktop/huludesktop.SlackBuild | 64 | ||||
-rw-r--r-- | multimedia/huludesktop/huludesktop.info | 10 | ||||
-rw-r--r-- | multimedia/huludesktop/slack-desc | 19 |
5 files changed, 101 insertions, 0 deletions
diff --git a/multimedia/huludesktop/README b/multimedia/huludesktop/README new file mode 100644 index 0000000000000..4ab1489efd8b7 --- /dev/null +++ b/multimedia/huludesktop/README @@ -0,0 +1,5 @@ +Hulu Desktop (Lean-back viewing for your PC) + +This script will repackage the debian binary. + +The Adobe Flash Player Plugin is required. diff --git a/multimedia/huludesktop/doinst.sh b/multimedia/huludesktop/doinst.sh new file mode 100644 index 0000000000000..3857649f506a8 --- /dev/null +++ b/multimedia/huludesktop/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications &> /dev/null +fi diff --git a/multimedia/huludesktop/huludesktop.SlackBuild b/multimedia/huludesktop/huludesktop.SlackBuild new file mode 100644 index 0000000000000..555036104e51f --- /dev/null +++ b/multimedia/huludesktop/huludesktop.SlackBuild @@ -0,0 +1,64 @@ +#!/bin/sh +# +# Slackware build script for Hulu Desktop +# +# Copyright 2010 Erik W. Hanson, Minneapolis, MN, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=huludesktop +VERSION=0.9.8 +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +case "$(uname -m)" in + i?86) DEBARCH="i386" ; ARCH=i386 ;; + x86_64) DEBARCH="amd64" ; ARCH=x86_64 ;; + *) echo "Package for $(uname -m) architecture is not available." ; exit 1 ;; +esac + +set -eu + +REAL_VER=$(ar p ${PRGNAM}_${DEBARCH}.deb control.tar.gz | tar zxO ./control \ + | grep Version | awk '{print $2}' | cut -d- -f1) + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $PKG + +ar p $CWD/${PRGNAM}_${DEBARCH}.deb data.tar.gz | tar xvz +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +mkdir -p $PKG/usr/doc +mv $PKG/usr/share/doc/huludesktop $PKG/usr/doc/$PRGNAM-$REAL_VER +rmdir $PKG/usr/share/doc +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$REAL_VER/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$REAL_VER-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/multimedia/huludesktop/huludesktop.info b/multimedia/huludesktop/huludesktop.info new file mode 100644 index 0000000000000..cecb20561416d --- /dev/null +++ b/multimedia/huludesktop/huludesktop.info @@ -0,0 +1,10 @@ +PRGNAM="huludesktop" +VERSION="0.9.8" +HOMEPAGE="http://www.hulu.com/labs/hulu-desktop" +DOWNLOAD="http://download.hulu.com/huludesktop_i386.deb" +MD5SUM="d9b27d1837ab86526100964e80c3cdd1" +DOWNLOAD_x86_64="http://download.hulu.com/huludesktop_amd64.deb" +MD5SUM_x86_64="bccc94d7f327989dab2653d254f40869" +MAINTAINER="Erik Hanson" +EMAIL="erik@slackbuilds.org" +APPROVED="dsomero" diff --git a/multimedia/huludesktop/slack-desc b/multimedia/huludesktop/slack-desc new file mode 100644 index 0000000000000..b44ea9b69dd77 --- /dev/null +++ b/multimedia/huludesktop/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler----------------------------------------------------| +huludesktop: Hulu Desktop (Lean-back viewing for your PC) +huludesktop: +huludesktop: Hulu Desktop is a lean-back viewing experience for your personal +huludesktop: computer. It features a sleek new look that's optimized for use with +huludesktop: standard Windows Media Center remote controls or Apple remote +huludesktop: controls, allowing you to navigate Hulu's entire library with just +huludesktop: six buttons. For users without remotes, the application is keyboard +huludesktop: and mouse-enabled. +huludesktop: +huludesktop: http://www.hulu.com/labs/hulu-desktop +huludesktop: |