diff options
Diffstat (limited to 'network/yturl/yturl.SlackBuild')
-rw-r--r-- | network/yturl/yturl.SlackBuild | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/network/yturl/yturl.SlackBuild b/network/yturl/yturl.SlackBuild index 93b803eef8..84795ef6ee 100644 --- a/network/yturl/yturl.SlackBuild +++ b/network/yturl/yturl.SlackBuild @@ -12,8 +12,13 @@ # youtube API changes break the release and upstream takes a long time to # make a new release. +# 20150120 bkw: upgrade to 1.17.0. The old download URL was broken, +# wonder how long for? +# Use "python setup.py" since upstream has started requiring it. +# Get rid of unused SLKCFLAGS and LIBDIRSUFFIX variables. + PRGNAM=yturl -VERSION=${VERSION:-1.16} +VERSION=${VERSION:-1.17.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -30,27 +35,13 @@ 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 rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/v$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -59,13 +50,13 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -mkdir -p $PKG/usr/bin -install -m0755 $PRGNAM $PKG/usr/bin/$PRGNAM +python setup.py install --root=$PKG + mkdir -p $PKG/usr/man/man1 gzip -9c $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README.md LICENSE $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.md LICENSE.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |