TextWorker: new recipe (#12537)

This commit is contained in:
Johan Wagenheim
2025-07-05 01:40:54 -04:00
committed by GitHub
parent 9c4a5ee8f9
commit cb730aba2e

View File

@@ -0,0 +1,49 @@
SUMMARY="A small utility for text transformations and cleanup"
DESCRIPTION="TextWorker is a lightweight Haiku-native utility that performs \
various transformations on text. It supports operations like case conversion, line sorting, trimming, prefix/suffix edits, and more.
This is beta software provided for testing purposes and may contain bugs or incomplete features. Feedback is welcome."
HOMEPAGE="https://github.com/dospuntos/TextWorker"
COPYRIGHT="2025 Johan Wagenheim"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="7c39aa53320551de19f1251706f7a7095c8fbafd2c31e83baaf7b22dac4b82d9"
SOURCE_DIR="TextWorker-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
textworker$secondaryArchSuffix = $portVersion
app:TextWorker = $portVersion
"
REQUIRES="
haiku$secundaryArchSuffix
lib:libicui18n$secondaryArchSuffix
lib:libicuuc$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libicui18n$secondaryArchSuffix >= 74
devel:libicuuc$secondaryArchSuffix >= 74
"
BUILD_PREREQUIRES="
makefile_engine
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
make $jobArgs
make bindcatalogs
}
INSTALL()
{
mkdir -p $appsDir
cp TextWorker $appsDir
addAppDeskbarSymlink $appsDir/TextWorker
}