diff options
author | B. Watson <yalhcru@gmail.com> | 2013-02-09 12:28:45 -0600 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2013-02-14 00:26:50 -0600 |
commit | a03660d1d85691a59dac6a0a99beb5cbbabafcfb (patch) | |
tree | 3fed7d73628b1f7345b91dffe113dc37322cb1e9 /network | |
parent | e2ed9e87f9392289c8ecd38b4e9817a952941d3a (diff) |
network/yturl: Added (get direct URLs to YouTube videos)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/yturl/README | 6 | ||||
-rw-r--r-- | network/yturl/slack-desc | 19 | ||||
-rw-r--r-- | network/yturl/yturl.SlackBuild | 73 | ||||
-rw-r--r-- | network/yturl/yturl.info | 10 |
4 files changed, 108 insertions, 0 deletions
diff --git a/network/yturl/README b/network/yturl/README new file mode 100644 index 000000000000..d060345c51ee --- /dev/null +++ b/network/yturl/README @@ -0,0 +1,6 @@ +yturl (get direct URLs to YouTube videos) + +yturl is a simple command-line utility written in Python. It converts +youtube URLs or video IDs into directly-watchable URLs. Example use: + +mplayer "$(yturl 'http://www.youtube.com/watch?v=KxaCOHT0pmI')" diff --git a/network/yturl/slack-desc b/network/yturl/slack-desc new file mode 100644 index 000000000000..7632cfab00aa --- /dev/null +++ b/network/yturl/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------------------------------------------------------| +yturl: yturl (get direct URLs to YouTube videos) +yturl: +yturl: yturl is a simple command-line utility written in Python. It converts +yturl: youtube URLs or video IDs into directly-watchable URLs. Example use: +yturl: +yturl: mplayer "$(yturl 'http://www.youtube.com/watch?v=KxaCOHT0pmI')" +yturl: +yturl: +yturl: +yturl: +yturl: diff --git a/network/yturl/yturl.SlackBuild b/network/yturl/yturl.SlackBuild new file mode 100644 index 000000000000..0654d9fb3fe1 --- /dev/null +++ b/network/yturl/yturl.SlackBuild @@ -0,0 +1,73 @@ +#!/bin/bash + +# Slackware build script for yturl + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +# Download file originally came from github, like so: +# wget -O yturl-master-$(date +%Y%m%d).zip https://github.com/cdown/yturl/archive/master.zip + +PRGNAM=yturl +VERSION=${VERSION:-20130202} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +ZIPNAME=$PRGNAM-master + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $ZIPNAME +unzip $CWD/$ZIPNAME-$VERSION.zip +cd $ZIPNAME +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +sed -i 's,share/man,man,' setup.py +python setup.py install --root=$PKG +gzip $PKG/usr/man/man1/$PRGNAM.1 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README LICENSE $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/yturl/yturl.info b/network/yturl/yturl.info new file mode 100644 index 000000000000..a4f2c62b683a --- /dev/null +++ b/network/yturl/yturl.info @@ -0,0 +1,10 @@ +PRGNAM="yturl" +VERSION="20130202" +HOMEPAGE="https://github.com/cdown/yturl" +DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/yturl-master-20130202.zip" +DOWNLOAD_x86_64="" +MD5SUM="c5059a5411836afcf8a12016f172e68d" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" |