diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-10 23:24:32 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-10 23:24:32 +0700 |
commit | 08a07e9f30efb9f0f5a7e90d27efdbe7c4046598 (patch) | |
tree | 9a36d38a3f2ff2d1df72f28a3daec2ed90888f8a /graphics/jUploadr/jUploadr.SlackBuild | |
parent | 16ce5fb9c600da65e82eff0751b521b9192c5e00 (diff) | |
download | slackbuilds-08a07e9f30efb9f0f5a7e90d27efdbe7c4046598.tar.gz |
graphics/jUploadr: Add support for x86_64.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/jUploadr/jUploadr.SlackBuild')
-rw-r--r-- | graphics/jUploadr/jUploadr.SlackBuild | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/graphics/jUploadr/jUploadr.SlackBuild b/graphics/jUploadr/jUploadr.SlackBuild index 0ae8784061..0d0f24ff30 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 . \ |