#!/bin/bash # jre # # Douglas Thrift # # $Id$ name=jre version=1.5.0_11 revision=0 categories=(java devel) description='Java Runtime Environment' url='https://jdk-distros.dev.java.net/' depends=('base/gcc' 'java/javavmwrapper') sources=(http://download.java.net/dlj/binaries/jdk-${version//./_}-dlj-linux-i586.bin) tasks=(deinstall install upgrade) # XXX: this needs more work... function build() { cd $source && sh $source/$source_files --accept-license --unpack || return $? mv -v jdk$version/jre jre$version && ln -sv ../jre$version jdk$version/jre || return $? jdk$version/bin/java -client -Xshare:dump || return $? mv -v jdk$version/man jre$version/man || return $? rm -fv jre$version/man/{,*/}/*/!(java|javaws|keytool|kinit|klist|ktab|orbd|pack200|policytool|rmid|rmiregistry|servertool|tnameserv|unpack200).??(?) || return $? for man in jre$version/man/{,*/}/*/*.??(?); do if [[ -f $man ]]; then bzip2 -v $man || return $? fi done install -dv $package/usr || return $? mv -v jre$version $package/usr }