#!/bin/bash # pdksh # # Douglas Thrift # # $Id$ name=pdksh version=5.2.14.2 revision=0 categories=(shells) description='Public Domain Korn Shell' url='http://www.cs.mun.ca/~michael/pdksh/' depends=('base/glibc') sources=(`site_pdksh $name-${version%.*}.tar.gz $(for ((index = 1; index <= ${version##*.}; ++index)); do echo "$name-${version%.*}-patches.$index"; done)` pdksh.patch) sourcedir=$name-${version%.*} function build() { cd $source/$sourcedir || return $? patch -p2 < $source/$name-${version%.*}-patches.1 || return $? gnu_patch ${source_files[*]%%*.@(1|gz)} || return $? gnu_configure --prefix=/usr --exec-prefix= }