SUMMARY="A Tracker add-on to rename multiple files at once"
DESCRIPTION="ReName! is a Tracker Add-On for HAIKU users. It provides you \
with a way to rename multiple files at once. ReName! allows you to add, \
remove or change file extensions. It also allows you to change the \
capitialization of your files, and do a search and replace on your file \
names. ReName! also allows you to prepend or append text to multiple file \
names!"
HOMEPAGE="https://github.com/bbjimmy/ReName_for_HAIKU"
COPYRIGHT="2000 FlipSide Software"
LICENSE="Public Domain"
REVISION="4"
SOURCE_URI="https://github.com/bbjimmy/ReName_for_HAIKU/archive/3ef452c257ab31c67a277920d5398358301ea5f3.tar.gz"
CHECKSUM_SHA256="553e095ac851f63a603b652f0e0f29c3ebbc7b668a8462c32883e456ac9fa62c"
SOURCE_DIR="ReName_for_HAIKU-3ef452c257ab31c67a277920d5398358301ea5f3"

ARCHITECTURES="all"

PROVIDES="
	rename= $portVersion
	app:rename = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	"

BUILD()
{
	cd source
	make $jobArgs BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
}

INSTALL()
{
	mkdir -p $addOnsDir/Tracker
	cp source/ReName $addOnsDir/Tracker/ReName!
	mkdir -p $documentationDir/ReName
	cd documentation
	cp -r * $documentationDir/ReName

}
