42 lines
902 B
Bash
42 lines
902 B
Bash
SUMMARY="Converter between DOS and Unix end-of-line"
|
|
DESCRIPTION="DOS/Windows like to put CR/LF at the end of lines whereas UNIX like \
|
|
to have just LF. Dos2unix and unix2dos are simple parser/converter command line \
|
|
programs to convert between the two formats."
|
|
HOMEPAGE="http://www.programmersheaven.com/download/3118/download.aspx"
|
|
COPYRIGHT="Public Domain"
|
|
LICENSE="Public Domain"
|
|
REVISION="1"
|
|
SOURCE_URI="http://ports-space.haiku-files.org/source/dos2unix-1.0.zip"
|
|
CHECKSUM_SHA256="a88941a2ab824deb79e7d012b0df72b5c84d1157af0b2d59b46184fb35b5519d"
|
|
|
|
ARCHITECTURES="all"
|
|
|
|
PROVIDES="
|
|
dos2unix = 1.0 compat >= 1
|
|
cmd:dos2unix
|
|
cmd:unix2dos
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
gcc -O -o dos2unix DOS2UNIX.C
|
|
gcc -O -o unix2dos UNIX2DOS.C
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $binDir
|
|
cp dos2unix $binDir/dos2unix
|
|
cp unix2dos $binDir/unix2dos
|
|
}
|