40 lines
826 B
Bash
40 lines
826 B
Bash
SUMMARY="Converter between DOS and Unix end-of-line delimiters"
|
|
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="https://github.com/puckipedia/dos2unix"
|
|
COPYRIGHT="Public Domain"
|
|
LICENSE="Public Domain"
|
|
REVISION="2"
|
|
SOURCE_URI="git://github.com/puckipedia/dos2unix.git#553720356be18ca60cae3d970a575520aef5a4f4"
|
|
|
|
ARCHITECTURES="all"
|
|
|
|
PROVIDES="
|
|
dos2unix = 1.0.1 compat >= 1
|
|
cmd:dos2unix
|
|
cmd:unix2dos
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
haiku_devel
|
|
cmd:g++
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cd src
|
|
g++ -O -o ../dos2unix dos2unix.c
|
|
g++ -O -o ../unix2dos unix2dos.c
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $binDir
|
|
cp dos2unix $binDir/dos2unix
|
|
cp unix2dos $binDir/unix2dos
|
|
}
|