#!/bin/bash # jdom # # Douglas Thrift # # $Id$ name=jdom version=1.0 revision=0 categories=(java textproc) description='Java library for accessing and manipulating XML documents' url='http://www.jdom.org/' depends=('java/jaxen') sources=(http://www.jdom.org/dist/binary/$name-$version.tar.gz) without=(docs) function build() { cd $source/$sourcedir || return $? install -dv $package/usr/share/java/classes || return $? install -v -m 0644 build/jdom.jar $package/usr/share/java/classes || return $? if [[ -z $without_docs ]]; then cd $source/$sourcedir/build/apidocs || return $? find . -type d -exec install -dv $package/usr/share/doc/$name/{} \; || return $? find . -type f -exec install -v -m 0644 {} $package/usr/share/doc/$name/{} \; || return $? cd $source/$sourcedir/build/samples || return $? find . -type d -exec install -dv $package/usr/share/examples/$name/{} \; || return $? find . -type f -exec install -v -m 0644 {} $package/usr/share/examples/$name/{} \; || return $? fi }