#!/bin/bash # saxon-net # # Douglas Thrift # # $Id$ name=saxon-net version=8.9 revision=0 categories=(textproc) description='XSLT 2.0 / XPath 2.0 / XQuery 1.0 processor for .NET' url='http://saxon.sourceforge.net/' depends=('lang/mono') sources=(`name=saxon site_sourceforge saxonb${version//./-}n.zip saxon-resources${version//./-}.zip` saxon.sh.in) without=(docs) # XXX: I wonder about saxon8api.netmodule function build() { cd $source/bin || return $? install -dv $package/usr/{bin,lib/mono/saxon} || return $? for program in *.exe; do install -v $program $package/usr/lib/mono/saxon/$program || return $? local program_=${program%.exe} sed -e "s/%%PROGRAM%%/$program/" $source/saxon.sh.in > $program_ || return $? install -v $program_ $package/usr/bin/$program_ || return $? done for assembly in *.dll; do gacutil -i $assembly -package saxon -root $package/usr/lib || return $? done if [[ -z $without_docs ]]; then cd $source/doc || 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/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 }