#!/bin/bash # jdk6 # # Douglas Thrift # # $Id$ name=jdk6 version=1.6.0 revision=0 categories=(java devel) description='Java Development Kit' url='https://jdk-distros.dev.java.net/' depends=('base/gcc' 'java/javavmwrapper') sources=(http://download.java.net/dlj/binaries/jdk-6-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 $? jdk$version/bin/java -client -Xshare:dump || return $? for man in jdk$version/man/{,*/}/*/*.??(?); do if [[ -f $man ]]; then bzip2 -v $man || return $? fi done install -dv $package/usr || return $? mv -v jdk$version $package/usr }