Files
haikuports/haiku-apps/pecorename/pecorename-1.5.recipe
2017-10-08 14:53:48 +02:00

67 lines
1.7 KiB
Bash

SUMMARY="A powerful renaming utility"
DESCRIPTION="
PecoRename is a powerful renaming utility, which allows you to rename many \
files according to a preset pattern. It also installs a Tracker add-on that \
can be invoked on the selected files with the shortcut ALT+OPT+R.
You can rename your files in many different ways:
* Number your files in order
* Search and replace
* Delete characters
* Make uppercase/lowercase
* Add the suitable file extension according to the file type
* Insert, append or replace text...
PecoRename gives you an easy to use interface with a powerful tool behind it.\
The changes can be previewed in realtime.
And - of course - all functions support special chars (like ä, â...).
Whenever you have to rename some or many files the same way, this is YOUR \
program!"
HOMEPAGE="http://www.maybe.de/software/pecorename"
COPYRIGHT="2008 Werner Freytag"
LICENSE="MIT"
REVISION="5"
commit="9b3ceb76a73881ad821b2b9535e4ad258b486c45"
SOURCE_URI="https://github.com/HaikuArchives/PecoRename/archive/$commit.tar.gz"
CHECKSUM_SHA256="52228295d058a7348a3ff9385bcf0f3dc058da10853538aa27eca0c1619b9f20"
SOURCE_DIR="PecoRename-$commit"
ARCHITECTURES="x86_gcc2 !x86 !x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 !x86"
PROVIDES="
pecorename = $portVersion
app:PecoRename = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
makefile_engine
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
cd Main
make $jobArgs OBJ_DIR=objects
cd ../Tracker\ Add-On
make $jobArgs OBJ_DIR=objects
}
INSTALL()
{
mkdir -p $appsDir
cp Main/PecoRename $appsDir
mkdir -p $addOnsDir/Tracker
cp Tracker\ Add-On/PecoRename $addOnsDir/Tracker
addAppDeskbarSymlink $appsDir/PecoRename
}