diff options
author | B. Watson <yalhcru@gmail.com> | 2015-09-10 17:59:06 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-09-12 08:11:30 +0700 |
commit | 169d490f3c0b08511b4cb2a38601bff3d679ac78 (patch) | |
tree | 7be50077350024f01918517b91b114b525180810 /network/uget/uget.SlackBuild | |
parent | 4b1581f7494ed9f62e2fa3a55276f5d7dcf9a80f (diff) | |
download | slackbuilds-169d490f3c0b08511b4cb2a38601bff3d679ac78.tar.gz |
network/uget: Updated for version 2.0.1, updated script.
Diffstat (limited to 'network/uget/uget.SlackBuild')
-rw-r--r-- | network/uget/uget.SlackBuild | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/network/uget/uget.SlackBuild b/network/uget/uget.SlackBuild index 470207863c..250e50eea8 100644 --- a/network/uget/uget.SlackBuild +++ b/network/uget/uget.SlackBuild @@ -1,13 +1,23 @@ #!/bin/sh -# Slackware build script for Uget -# Written by Morten Juhl-Johansen Zölde-Fejér <mjjzf@syntaktisk.dk> +# Slackware build script for uget +# Originally written by Morten Juhl-Johansen Zölde-Fejér <mjjzf@syntaktisk.dk> # Updated by B. Watson <yalhcru@gmail.com> -# Licensed under the WTFPL. See http://sam.zoy.org/wtfpl/ for details. +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +# 20150910 bkw: +# - upgrade to 2.0.1 +# - get rid of curlopt_nosignal.diff (no longer needed) +# - fix WTFPL URL +# - add LIBNOTIFY=no +# - document build options in slack-desc +# - cleanup README +# - install developer docs doc/*.txt +# - don't install empty AUTHORS and ChangeLog PRGNAM=uget -VERSION=${VERSION:-1.10.4} +VERSION=${VERSION:-2.0.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -53,18 +63,17 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Prevent segfaults in Curl_resolv_timeout(). This patch has been accepted -# by upstream and will be in the next release. -patch -p1 < $CWD/curlopt_nosignal.diff +ARIA2="${ARIA2:-yes}" +LIBNOTIFY="${LIBNOTIFY:-yes}" -if [ "${ARIA2:-yes}" = "no" ]; then - ARIAFLAG="--disable-plugin-aria2" -fi +[ "$ARIA2" = "no" ] && ARIAFLAG="--disable-plugin-aria2" +[ "$LIBNOTIFY" = "no" ] && NOTIFYFLAG="--disable-notify" CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ $ARIAFLAG \ + $NOTIFYFLAG \ --disable-gstreamer \ --prefix=/usr \ --build=$ARCH-slackware-linux @@ -72,11 +81,15 @@ make make install-strip DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION +# 20150910 bkw: AUTHORS and ChangeLog are 0-byte placeholders in uget-2.0.1, +# add them back if this changes in future releases. +cp -a COPYING README doc/*.txt $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 +sed -e "s,@A,$ARIA2," \ + -e "s,@L,$LIBNOTIFY," \ + $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG |