network/yturl: Added (get direct URLs to YouTube videos)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
parent
e2ed9e87f9
commit
a03660d1d8
|
@ -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')"
|
|
@ -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:
|
|
@ -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}
|
|
@ -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"
|
Loading…
Reference in New Issue