Browse Source

extra/java3d: Upgraded to java3d-1.5.2.

slackware-14.2
Damien Goutte-Gattat 9 years ago
parent
commit
7cb28a4fe3
  1. 1
      extra/java3d/j3d-1_5_2-linux-amd64.zip.sha1
  2. 1
      extra/java3d/java3d-1_5_1-linux-i586.bin.sha1
  3. 52
      extra/java3d/java3d.SlackBuild

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

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

1
extra/java3d/java3d-1_5_1-linux-i586.bin.sha1

@ -1 +0,0 @@
fd352156c2576ae50adc57f0e784901970e37a94 java3d-1_5_1-linux-i586.bin

52
extra/java3d/java3d.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2008 Damien Goutte-Gattat
# 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:
@ -25,21 +25,40 @@
# 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:-java3d}
VERSION=${VERSION:-1_5_1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-linux-i586.bin}
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}
ARCH=${ARCH:-i486}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMETGZ}
JDK=${JDK:-/usr/lib/jdk1.6.0_11/jre}
JDK=${JDK:-/usr/lib$LIBDIRSUFFIX/jdk1.7.0_07/jre}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
@ -54,16 +73,22 @@ if [ ! -d $TMP ]; then
exit 1
fi
# Verify the archive
# 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
mkdir -p $PKG/{$JDK,install}
tail -n +358 $ARCHIVE > $PKG/$JDK/install
chmod 755 $PKG/$JDK/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
./install
rm install
unzip $TMP/j3d-$VERSION-linux-$arch/j3d-jre.zip
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
@ -73,8 +98,9 @@ cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-${VERSION//_/.}-$ARCH-$BUILD.tgz
/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

Loading…
Cancel
Save