summaryrefslogtreecommitdiff
path: root/network/yturl/yturl.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/yturl/yturl.SlackBuild')
-rw-r--r--network/yturl/yturl.SlackBuild17
1 files changed, 9 insertions, 8 deletions
diff --git a/network/yturl/yturl.SlackBuild b/network/yturl/yturl.SlackBuild
index 41e7c8b025..93b803eef8 100644
--- a/network/yturl/yturl.SlackBuild
+++ b/network/yturl/yturl.SlackBuild
@@ -6,11 +6,14 @@
# 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
+# 20140316 bkw:
+# Updated to 1.16 release, use tar.gz instead of zip file. From now on
+# I'll track the releases instead of just grabbing current git... unless
+# youtube API changes break the release and upstream takes a long time to
+# make a new release.
PRGNAM=yturl
-VERSION=${VERSION:-20130618}
+VERSION=${VERSION:-1.16}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -43,14 +46,12 @@ 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
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/v$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \