SUMMARY="A localizer tool for yab programs"
DESCRIPTION="The localizer allows you to generate catalogs file for yab programs."
HOMEPAGE="https://software.besly.de/"
COPYRIGHT="2011 Jan Bungeroth
	2021 Lorenz (lorglas) BeSly Software Solutions"
LICENSE="Artistic"
REVISION="2"
SOURCE_URI="https://github.com/lorglas/yab_localizer/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="d62c0bd27d4c5305e73e809b089124a7daf910c5cd5b6cb73dda4042ad82aef7"
SOURCE_FILENAME="yab_localizer-$portVersion.tar.gz"
ADDITIONAL_FILES="yab.hvif"

ARCHITECTURES="any"
DISABLE_SOURCE_PACKAGE="YES"

PROVIDES="
	yab_localizer = $portVersion
	app:yab_localizer = $portVersion
	"
REQUIRES="
	yab >= 1.8.0
	"

BUILD_REQUIRES=""
BUILD_PREREQUIRES=""

INSTALL()
{
	mkdir -p $appsDir/yab_localizer
	addattr -t icon -f $portDir/additional-files/yab.hvif "BEOS:ICON" "yab_Localizer.yab"
	cp -R * $appsDir/yab_localizer
	chmod 777 $appsDir/yab_localizer/yab_Localizer.yab
	mkdir -p $dataDir/
	DIR_YAB_DESKBAR="${dataDir}/deskbar/menu/Applications/yab"
	mkdir -p ${DIR_YAB_DESKBAR}
	addAppDeskbarSymlink ${appsDir}/yab_localizer/yab_Localizer.yab "yab/Localizer"
	DIR_YAB_LOCALE="${dataDir}/locale/catalogs/"
	mkdir -p ${DIR_YAB_LOCALE}
	cp -R language/x-vnd.Localizer ${DIR_YAB_LOCALE}
}
