#!/bin/bash # tar # # Douglas Thrift # # $Id$ name=tar version=20060829 revision=0 categories=(base archivers sysutils) description='System tar command' url='http://computers.douglasthrift.net/hre/tar.xml' if [[ -n $with_gtar ]]; then depends=('archivers/gtar') unset with_star elif [[ -n $with_star ]]; then depends=('archivers/star') else depends=('base/libarchive') fi with=(gtar star) function build() { install -dv $package/{bin,usr/share/man/man1} if [[ -n $with_gtar ]]; then local tar=gtar elif [[ -n $with_star ]]; then local tar=star else local tar=bsdtar fi ln -sv $tar $package/bin/tar ln -sv $tar.1.bz2 $package/usr/share/man/man1/tar.1.bz2 }