#!/bin/bash # jaxen # # Douglas Thrift # # $Id$ name=jaxen version=1.1 revision=0 categories=(java textproc) description='Java XPath Engine' url='http://jaxen.org/' depends=('java/javavmwrapper') sources=(http://dist.codehaus.org/jaxen/distributions/$name-$version.tar.gz) without=(docs) function build() { cd $source/$sourcedir || return $? install -dv $package/usr/share/java/classes || return $? install -v -m 0644 jaxen-$version.jar $package/usr/share/java/classes || return $? if [[ -z $without_docs ]]; then cd $source/$sourcedir/docs || 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 $? fi }