diff options
author | Philip van der Hoeven <philip@vd-hoeven.nl> | 2015-03-10 23:24:22 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-03-10 23:24:22 +0700 |
commit | 1c7c84dc98b3f17a6b97444fcf018f3dd8a8cd69 (patch) | |
tree | e6aefb72e7c729bcc99af2bd66c87ec0734d6ddd /network | |
parent | fe3b09c70f7221ce42fa1d5cc1aaca5c3f006764 (diff) | |
download | slackbuilds-1c7c84dc98b3f17a6b97444fcf018f3dd8a8cd69.tar.gz |
network/freerdp: Fix download filename issue.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/freerdp/freerdp.SlackBuild | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/network/freerdp/freerdp.SlackBuild b/network/freerdp/freerdp.SlackBuild index fc852a9cb2..6e9446402a 100644 --- a/network/freerdp/freerdp.SlackBuild +++ b/network/freerdp/freerdp.SlackBuild @@ -26,13 +26,20 @@ PRGNAM=freerdp VERSION=${VERSION:-1.2.0_beta1_android9} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} TARNAME=${VERSION%_*}+${VERSION##*_} TARNAME=${TARNAME/_/-}.tar.gz DIRNAME=FreeRDP-${VERSION//_/-} +# If the source is downloaded with a browser or content_disposition set the +# filename is different. +ALTTARNAME=FreeRDP-${VERSION//_/-}.tar.gz +if [ -f $ALTTARNAME ]; then + TARNAME=$ALTTARNAME +fi + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; |