Browse Source

extra/java3d: Removed.

slackware-14.2
Damien Goutte-Gattat 9 years ago
parent
commit
e992b5e323
  1. 1
      extra/java3d/j3d-1_5_2-linux-amd64.zip.sha1
  2. 109
      extra/java3d/java3d.SlackBuild
  3. 12
      extra/java3d/slack-desc

1
extra/java3d/j3d-1_5_2-linux-amd64.zip.sha1

@ -1 +0,0 @@
14f6c69cdb1c25bb6f6abab400cbb08de5bb35d8 j3d-1_5_2-linux-amd64.zip

109
extra/java3d/java3d.SlackBuild

@ -1,109 +0,0 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2008,2013 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest java3d release is available at:
# <http://java.sun.com/javase/technologies/desktop/java3d/>.
# Arch
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
case $ARCH in
x86_64)
arch=amd64
LIBDIRSUFFIX=64
;;
i486)
arch=i586
LIBDIRSUFFIX=
;;
*)
"Unsupported arch"
exit 1
;;
esac
# Source package infos
NAMESRC=${NAMESRC:-j3d}
VERSION=${VERSION:-1_5_2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-linux-$arch.zip}
WGET=${WGET:-http://download.java.net/media/java3d/builds/release/1.5.2/$ARCHIVE}
# Built package infos
NAMETGZ=${NAMETGZ:-java3d}
BUILD=${BUILD:-1GGD}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMETGZ}
JDK=${JDK:-/usr/lib$LIBDIRSUFFIX/jdk1.7.0_07/jre}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
# Sanity check
if [ $UID -eq 0 ]; then
echo "You should NOT run this script as ROOT!"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP does not exist or is not a directory!"
exit 1
fi
# Get and verify the archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
# Extract and install
cd $TMP
unzip $CWD/$ARCHIVE
cd j3d-$VERSION-linux-$arch
mkdir -p $PKG/$JDK $PKG/usr/doc/java3d-${VERSION//_/.}
install -m 644 COPYRIGHT.txt LICENSE-Java3D-v$VERSION.txt README.txt \
$PKG/usr/doc/java3d-${VERSION//_/.}
cd $PKG/$JDK
unzip $TMP/j3d-$VERSION-linux-$arch/j3d-jre.zip
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-${VERSION//_/.}-$ARCH-$BUILD.txz
rm -rf $PKG
rm -rf $TMP/j3d-$VERSION-linux-$arch
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi

12
extra/java3d/slack-desc

@ -1,12 +0,0 @@
|-----handy-ruler------------------------------------------------------|
java3d: java3d (Java 3D API for OpenGL)
java3d:
java3d:
java3d:
java3d:
java3d:
java3d:
java3d:
java3d:
java3d:
java3d:
Loading…
Cancel
Save