Added batchrename-0.2.0 recipe (#10260)

It's a Tracker add-on, and stand-alone application that I wrote a couple
of years back, as I wasn't happy with the existing offerings.
It's actual name is just 'rename', but that one is already taken by
bbjimmy's add-on.
This commit is contained in:
Axel Dörfler
2024-04-09 08:59:52 +02:00
committed by GitHub
parent 890fec9c8f
commit 9734678530

View File

@@ -0,0 +1,48 @@
SUMMARY="An application and Tracker add-on to rename multiple files at once"
DESCRIPTION="batchrename is a standalone application, and Tracker add-on for Haiku. \
You can rename multiple files in multiple directories at once, and also shows \
a preview. It offers many renaming options, and can also rename files by contents \
of their attributes, or the result of shell scripts in case you need that."
HOMEPAGE="https://github.com/axeld/rename"
COPYRIGHT="2019-2024 pinc Software"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/axeld/rename/archive/39a87c5d5127544f831e89fce91c2b33193cc103.tar.gz"
CHECKSUM_SHA256="085bd2ceb244b6bd44e19903fe5efc08567bb05d42aa0e1dd88f554b756ec58a"
SOURCE_DIR="rename-39a87c5d5127544f831e89fce91c2b33193cc103"
ARCHITECTURES="all"
USER_SETTINGS_FILES="\"settings/pinc.rename settings\""
PROVIDES="
batchrename
cmd:batchrename= $portVersion
app:batchrename= $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
devel:libicuuc
"
BUILD_PREREQUIRES="
makefile_engine
cmd:g++
cmd:make
"
BUILD()
{
make $jobArgs BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
}
INSTALL()
{
mkdir -p $binDir
cp batchrename $binDir/batchrename
mkdir -p $addOnsDir/Tracker
ln -sf $binDir/batchrename $addOnsDir/Tracker/Batch\ rename
}