Files
haikuports/app-text/dos2unix/dos2unix-1.0.recipe
2014-04-21 19:31:51 +02:00

40 lines
938 B
Plaintext

SUMMARY="dos2unix and unix2dos end of line file convertors."
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"
SRC_URI="http://ports-space.haiku-files.org/source/dos2unix-1.0.zip"
CHECKSUM_SHA256="a88941a2ab824deb79e7d012b0df72b5c84d1157af0b2d59b46184fb35b5519d"
REVISION="1"
COPYRIGHT="Public Domain"
LICENSE="Public Domain"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
dos2unix = 1.0 compat >= 1
cmd:dos2unix
cmd:unix2dos
"
REQUIRES="
haiku >= $haikuVersion
"
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
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
}