SUMMARY="Convert filenames from one encoding to another"
DESCRIPTION="convmv is meant to help convert a single filename, a directory \
tree and the contained files or a whole filesystem into a different encoding. \
It just converts the filenames, not the content of the files. A special \
feature of convmv is that it also takes care of symlinks, also converts the \
symlink target pointer in case the symlink target is being converted too."
HOMEPAGE="https://www.j3e.de/linux/convmv/man/"
COPYRIGHT="2003-2018 Bjoern JACKE"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://www.j3e.de/linux/convmv/convmv-$portVersion.tar.gz"
CHECKSUM_SHA256="53b6ac8ae4f9beaee5bc5628f6a5382bfd14f42a5bed3d881b829d7b52d81ca6"
PATCHES="convmv-$portVersion.patchset"

ARCHITECTURES="any"

PROVIDES="
	convmv = $portVersion
	cmd:convmv
	"
REQUIRES="
	haiku
	cmd:perl
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:make
	cmd:perl
	cmd:which
	"

TEST_REQUIRES="
	cmd:diff
	cmd:find
	"

BUILD()
{
	make PREFIX=$prefix MANDIR=$manDir
}

INSTALL()
{
	make install PREFIX=$prefix MANDIR=$manDir
}

TEST()
{
	make test
}
