aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-04-10 23:24:32 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-04-10 23:24:32 +0700
commit08a07e9f30efb9f0f5a7e90d27efdbe7c4046598 (patch)
tree9a36d38a3f2ff2d1df72f28a3daec2ed90888f8a
parent16ce5fb9c600da65e82eff0751b521b9192c5e00 (diff)
graphics/jUploadr: Add support for x86_64.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--graphics/jUploadr/jUploadr.SlackBuild30
-rw-r--r--graphics/jUploadr/jUploadr.info4
2 files changed, 29 insertions, 5 deletions
diff --git a/graphics/jUploadr/jUploadr.SlackBuild b/graphics/jUploadr/jUploadr.SlackBuild
index 0ae8784061787..0d0f24ff30026 100644
--- a/graphics/jUploadr/jUploadr.SlackBuild
+++ b/graphics/jUploadr/jUploadr.SlackBuild
@@ -9,21 +9,45 @@ VERSION=${VERSION:-1.1.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-ARCH=i386
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+ SRCARCH=i386
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+ SRCARCH=i386
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+ SRCARCH=amd64
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+ SRCARCH=i386
+fi
+
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION-linuxGTK-i386.tar.gz
-mv $PRGNAM-$VERSION-linuxGTK-i386 $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION-linuxGTK-$SRCARCH.tar.gz
+mv $PRGNAM-$VERSION-linuxGTK-$SRCARCH $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
diff --git a/graphics/jUploadr/jUploadr.info b/graphics/jUploadr/jUploadr.info
index 6195b5ad3b6c5..10817417c5713 100644
--- a/graphics/jUploadr/jUploadr.info
+++ b/graphics/jUploadr/jUploadr.info
@@ -3,8 +3,8 @@ VERSION="1.1.2"
HOMEPAGE="http://juploadr.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/juploadr/jUploadr-1.1.2-linuxGTK-i386.tar.gz"
MD5SUM="6be4f8ab6937441e58648f14503d6607"
-DOWNLOAD_x86_64="UNTESTED"
-MD5SUM_x86_64=""
+DOWNLOAD_x86_64="https://downloads.sourceforge.net/project/juploadr/juploadr/1.1.2/jUploadr-1.1.2-linuxGTK-amd64.tar.gz"
+MD5SUM_x86_64="5a8a2d73e48f13ed88917e50b719048d"
REQUIRES="jdk"
MAINTAINER="Michales Michaloudes"
EMAIL="korgie@gmail.com"