0
0
Fork 0
haikuports/haiku-apps/catkeyseditor/catkeyseditor-0.1.2.recipe

50 lines
1.2 KiB
Bash

SUMMARY="A tool to translate catkeys used to localize Haiku apps"
DESCRIPTION="With CatKeysEditor you can translate the plain text catalog files \
used to localize Haiku applications.
Simply get the 'en.catkeys' of the application to be localized and rename it \
using the standard two-letter language code of your target, e.g. 'fr.catkeys'. \
Then open it with CatKeysEditor and start translating.
When you're done, you have to recompile the app making use of the new catkeys."
HOMEPAGE="https://github.com/puckipedia/BeLocalized"
COPYRIGHT="2014-2017 Puck Meerburg"
LICENSE="MIT"
REVISION="3"
srcGitRev="001b112abf2f6a963c9f9bbb84c7cb6fe7d579f7"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="dc80286e6737cffb31df1bf0752896cdc561f1c0bfb5f5015cd0fd218d6ee9ca"
SOURCE_DIR="BeLocalized-$srcGitRev"
ARCHITECTURES="all ?x86"
PROVIDES="
catkeyseditor = $portVersion
app:CatKeysEditor = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
makefile_engine
cmd:gcc
cmd:make
"
BUILD()
{
cd CatKeysEditor
make $jobArgs OBJ_DIR=objects
make bindcatalogs OBJ_DIR=objects
}
INSTALL()
{
mkdir -p $appsDir
cp -a CatKeysEditor/objects/CatKeysEditor $appsDir
addAppDeskbarSymlink $appsDir/CatKeysEditor
}