Files
haikuports/haiku-apps/koder/koder-0.6.0.recipe
2023-05-19 10:08:45 +02:00

61 lines
1.4 KiB
Bash

SUMMARY="A code editor"
DESCRIPTION="Koder is a code editor for Haiku based on Scintilla editing \
component. It supports syntax highlighting for several programming languages \
and additional languages can be added by the user. It also features multiline \
editing, folding, brace highlighting, and some other things supported by \
Scintilla."
HOMEPAGE="https://github.com/KapiX/Koder"
COPYRIGHT="2016-2023 Kacper Kasper"
LICENSE="MIT"
REVISION="2"
SOURCE_URI="https://github.com/KapiX/Koder/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="21c6961112ac2b38512617d72a22ec7d16b0d78b93e24bf1e516cda03a7c90d8"
SOURCE_DIR="Koder-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
USER_SETTINGS_FILES="
settings/Koder directory
"
PROVIDES="
koder$secondaryArchSuffix = $portVersion
app:Koder = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libscintilla$secondaryArchSuffix >= 5
lib:liblexilla$secondaryArchSuffix
lib:libyaml_cpp$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libscintilla$secondaryArchSuffix >= 5
devel:liblexilla$secondaryArchSuffix
devel:libyaml_cpp$secondaryArchSuffix
"
BUILD_PREREQUIRES="
makefile_engine
cmd:g++$secondaryArchSuffix
cmd:make
"
BUILD()
{
make $jobArgs OBJ_DIR=objects
make bindcatalogs OBJ_DIR=objects
}
INSTALL()
{
mkdir -p $appsDir
cp -af objects/Koder $appsDir
mkdir -p $dataDir/Koder
cp -r data/* $dataDir/Koder
addAppDeskbarSymlink $appsDir/Koder
}