#!/bin/bash # tofrodos # # Douglas Thrift # # $Id$ name=tofrodos version=1.7.6 revision=0 categories=(base converters) description='Converts text files between MSDOS/Windows and Unix formats' url='http://www.thefreecountry.com/tofrodos/' depends=('base/glibc') sources=(http://tofrodos.sourceforge.net/download/$name-$version.tar.gz) function build() { cd $source/src || return $? gmake || return $? install -Dv fromdos $package/usr/bin/fromdos || return $? install -Dv fromdos.1 $package/usr/share/man/man1/fromdos.1 || return $? for command in {todos,dos2unix,unix2dos}; do ln -fv $package/usr/bin/fromdos $package/usr/bin/$command || return $? ln -fsv fromdos.1 $package/usr/share/man/man1/$command.1 || return $? done }