# Maintainer: PktSurf <smlinux@pktsurf.in>
app=tofrodos
version=1.7.13
build=1sml
homepage="https://www.thefreecountry.com/tofrodos/index.shtml"
download="https://tofrodos.sourceforge.io/download/tofrodos-$version.tar.gz"
desc="Text file conversion utility to process UTF-8 and ASCII files between MSDOS and Unix formats" 
requires="musl"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app
  fixbuilddirpermissions
}

build() {
  cd src

  make
  install -Dm 755 fromdos $pkg/bin/fromdos

  ( cd $pkg/bin ; ln -s fromdos todos )

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
084a26d44c7ec17929c8cda7655df59f91a6d8f08bba51af9ca0434eedca2f900fb0d38721c9e452c6c2728ad00709531b68b2d40089796622c5163d7663aa19  tofrodos-1.7.13.tar.lz
"
