Files
haikuports/app-text/dos2unix/dos2unix-1.0.recipe
Oliver Tappe 52b344b97b Drop references to $haikuVersion.
* Referring the current haiku version explicitly is not needed, since
  the RequiresUpdater takes care of setting the version of Haiku used
  for building a package.
2014-12-14 23:08:52 +01:00

40 lines
904 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
"
BUILD_PREREQUIRES="
haiku_devel
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
}