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:
Tobias Kortkamp
2022-04-17 10:27:12 +00:00
committed by GitHub
parent fc0b51f9bc
commit 3680d726c9
2 changed files with 31 additions and 2 deletions

View 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"
};

View File

@@ -14,10 +14,13 @@ anchor character stays fixed and the cursor one moves around."
HOMEPAGE="https://kakoune.org/" HOMEPAGE="https://kakoune.org/"
COPYRIGHT="Public Domain" COPYRIGHT="Public Domain"
LICENSE="Unlicense" LICENSE="Unlicense"
REVISION="1" REVISION="2"
SOURCE_URI="https://github.com/mawww/kakoune/releases/download/v$portVersion/kakoune-$portVersion.tar.bz2" SOURCE_URI="https://github.com/mawww/kakoune/releases/download/v$portVersion/kakoune-$portVersion.tar.bz2"
CHECKSUM_SHA256="aa30889d9da11331a243a8f40fe4f6a8619321b19217debac8f565e06eddb5f4" CHECKSUM_SHA256="aa30889d9da11331a243a8f40fe4f6a8619321b19217debac8f565e06eddb5f4"
PATCHES="kakoune-$portVersion.patchset" PATCHES="kakoune-$portVersion.patchset"
ADDITIONAL_FILES="
kak.rdef.in
"
ARCHITECTURES="all !x86_gcc2" ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86" SECONDARY_ARCHITECTURES="x86"
@@ -30,7 +33,7 @@ if [ "$targetArchitecture" = x86_gcc2 ]; then
fi fi
PROVIDES=" PROVIDES="
kakoune$secondaryArchSuffix kakoune$secondaryArchSuffix = $portVersion
cmd:kak$commandSuffix cmd:kak$commandSuffix
" "
REQUIRES=" REQUIRES="
@@ -49,8 +52,20 @@ BUILD_PREREQUIRES="
cmd:make cmd:make
" "
defineDebugInfoPackage kakoune$secondaryArchSuffix \
"$commandBinDir"/kak
BUILD() 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 make $jobArgs
} }
@@ -58,4 +73,6 @@ INSTALL()
{ {
make bindir="$commandBinDir" docdir="$docDir" libexecdir="$libExecDir" \ make bindir="$commandBinDir" docdir="$docDir" libexecdir="$libExecDir" \
mandir="$manDir/man1" sharedir="$dataDir/kak" install mandir="$manDir/man1" sharedir="$dataDir/kak" install
addResourcesToBinaries kak.rdef "$commandBinDir"/kak
} }