summaryrefslogtreecommitdiff
path: root/network/js/js.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-30 18:11:52 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-30 20:00:38 -0500
commit29b7ab81bc603c7f3940a0e9afdecd678b860528 (patch)
tree8c05eadc41c058f0b00a4c92e44529055de56e89 /network/js/js.SlackBuild
parent6c8f4a5c474d408aba23521a1fa8827f31a78ecd (diff)
downloadslackbuilds-29b7ab81bc603c7f3940a0e9afdecd678b860528.tar.gz
network/js: Removed (included in Slackware)
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/js/js.SlackBuild')
-rw-r--r--network/js/js.SlackBuild87
1 files changed, 0 insertions, 87 deletions
diff --git a/network/js/js.SlackBuild b/network/js/js.SlackBuild
deleted file mode 100644
index 0576867bbe..0000000000
--- a/network/js/js.SlackBuild
+++ /dev/null
@@ -1,87 +0,0 @@
-#!/bin/sh
-
-# Slackware build script for SpiderMonkey
-
-# Written by David Woodfall dave@unrealize.co.uk
-# aka dive irc.freenode.net #slackware & #slackbuilds
-
-# Feel free to edit this script as you feel fit but
-# please acknowledge me somewhere in it and contact
-# me if you make any nice improvements.
-
-PRGNAM=js
-VERSION=${VERSION:-1.8.0_rc1}
-BUILD=${BUILD:-1}
-TAG=${TAG:-_SBo}
-
-SRC_VERSION=$(echo $VERSION | tr _ -)
-
-# Automatically determine the architecture we're building on:
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i486 ;;
- arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
- *) ARCH=$( uname -m ) ;;
- esac
-fi
-
-CWD=$(pwd)
-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
-
-CFLAGS="$SLKCFLAGS"
-CXXFLAGS="$SLKCFLAGS"
-XLDFLAGS="-s"
-OPTIMIZER="$SLKCFLAGS"
-
-set -e
-
-rm -rf $PKG
-mkdir -p $TMP $PKG $OUTPUT
-cd $TMP
-rm -rf $PRGNAM
-tar xvf $CWD/$PRGNAM-$SRC_VERSION.tar.gz
-cd $PRGNAM
-chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
-find . \
- \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
-
-patch -p1 < $CWD/dynamic-link.patch
-
-cd src
-gmake -f Makefile.ref all export BUILD_OPT=1
-
-mv -v ../../dist $PKG/usr
-
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp ../README README.html $PKG/usr/doc/$PRGNAM-$VERSION/
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-mkdir -p $PKG/install
-cat $CWD/slack-desc > $PKG/install/slack-desc
-
-cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}