mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
kakoune: some improvements (#6803)
* kakoune: add B_BACKGROUND_APP to app_flags This avoids it briefly flashing up at least once in the Deskbar whenever it is launched. * kakoune: add debuginfo package /bin/kak is unstripped and ~40 MiB in size. Reduces package size from 14 MiB to 1.5 MiB. * kakoune: bump
This commit is contained in:
12
app-editors/kakoune/additional-files/kak.rdef.in
Normal file
12
app-editors/kakoune/additional-files/kak.rdef.in
Normal file
@@ -0,0 +1,12 @@
|
||||
resource app_signature "application/x-vnd.kakoune";
|
||||
resource app_flags B_MULTIPLE_LAUNCH | B_BACKGROUND_APP;
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
variety = 0,
|
||||
internal = 0,
|
||||
short_info = "Kakoune",
|
||||
long_info = "Modal code editor with a focus on interactivity"
|
||||
};
|
||||
@@ -14,10 +14,13 @@ anchor character stays fixed and the cursor one moves around."
|
||||
HOMEPAGE="https://kakoune.org/"
|
||||
COPYRIGHT="Public Domain"
|
||||
LICENSE="Unlicense"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://github.com/mawww/kakoune/releases/download/v$portVersion/kakoune-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="aa30889d9da11331a243a8f40fe4f6a8619321b19217debac8f565e06eddb5f4"
|
||||
PATCHES="kakoune-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="
|
||||
kak.rdef.in
|
||||
"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
@@ -30,7 +33,7 @@ if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
fi
|
||||
|
||||
PROVIDES="
|
||||
kakoune$secondaryArchSuffix
|
||||
kakoune$secondaryArchSuffix = $portVersion
|
||||
cmd:kak$commandSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
@@ -49,8 +52,20 @@ BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
"
|
||||
|
||||
defineDebugInfoPackage kakoune$secondaryArchSuffix \
|
||||
"$commandBinDir"/kak
|
||||
|
||||
BUILD()
|
||||
{
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
"$portDir"/additional-files/kak.rdef.in > kak.rdef
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
@@ -58,4 +73,6 @@ INSTALL()
|
||||
{
|
||||
make bindir="$commandBinDir" docdir="$docDir" libexecdir="$libExecDir" \
|
||||
mandir="$manDir/man1" sharedir="$dataDir/kak" install
|
||||
|
||||
addResourcesToBinaries kak.rdef "$commandBinDir"/kak
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user