Skip to content
This repository was archived by the owner on Jan 17, 2026. It is now read-only.

Commit 950f15a

Browse files
erikcghedlundtranquil-tr0
authored andcommitted
add: kakoune-ansi-git (pacstall#8273)
1 parent 3390ed6 commit 950f15a

File tree

4 files changed

+77
-0
lines changed

4 files changed

+77
-0
lines changed

packagelist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ joplin-desktop-app
294294
jq-bin
295295
jsonnet-bundler-bin
296296
kakoune
297+
kakoune-ansi-git
297298
kakoune-auto-pairs-git
298299
kakoune-kakboard-git
299300
kakoune-lsp

packages/kakoune-ansi-git/.SRCINFO

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
pkgbase = kakoune-ansi-git
2+
gives = kakoune-ansi
3+
pkgver = 0.2.8
4+
pkgdesc = Support for rendering ANSI-colored text in Kakoune
5+
url = https://github.com/eraserhd/kak-ansi
6+
arch = any
7+
depends = kakoune
8+
makedepends = make
9+
makedepends = sed
10+
checkdepends = bash
11+
enhances = kakoune
12+
license = Unlicense
13+
maintainer = Erik Hedlund <erikcghedlund@outlook.com>
14+
source = kakoune-ansi::https://github.com/eraserhd/kak-ansi.git
15+
checkdepends_debian = moreutils
16+
checkdepends_debian = grep
17+
18+
pkgname = kakoune-ansi-git
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
pkgname='kakoune-ansi-git'
2+
pkgver="0.2.8"
3+
pkgdesc='Support for rendering ANSI-colored text in Kakoune'
4+
gives='kakoune-ansi'
5+
license=('Unlicense')
6+
url='https://github.com/eraserhd/kak-ansi'
7+
arch=('any')
8+
maintainer=("Erik Hedlund <erikcghedlund@outlook.com>")
9+
source=("${gives}::https://github.com/eraserhd/kak-ansi.git")
10+
depends=('kakoune')
11+
makedepends=('make' 'sed')
12+
checkdepends=('bash')
13+
checkdepends_debian=('moreutils' 'grep')
14+
enhances=('kakoune')
15+
16+
prepare() {
17+
# We wan't the expression the expand when calling the script, not now
18+
# shellcheck disable=SC2016
19+
sed -i 's;filterdir="$(dirname $kak_source)/..";filterdir="/usr/share/kak";' "${srcdir}/${gives}/rc/ansi.kak"
20+
}
21+
22+
build() {
23+
make -C "${srcdir}/${gives}"
24+
}
25+
26+
check() {
27+
cd "${srcdir}/${gives}"
28+
# Four test cases are broken on Debian
29+
if [[ "$(cut -f 1 -d ':' <<< "${DISTRO}")" == "debian" ]]; then
30+
grep -vE '(┘┐┌└┼─├┤┴┬\│|advances using byte offset|covers ending char bytes)' './tests/tests.bash' | sponge './tests/tests.bash'
31+
fi
32+
bash tests/tests.bash
33+
}
34+
35+
package() {
36+
install -Dm755 "${srcdir}/${gives}/kak-ansi-filter" "${pkgdir}/usr/share/kak/kak-ansi-filter"
37+
install -Dm644 "${srcdir}/${gives}/rc/ansi.kak" "${pkgdir}/usr/share/kak/autoload/rc/ansi.kak"
38+
install -Dm644 "${srcdir}/${gives}/UNLICENSE" "${pkgdir}/usr/share/licenses/${gives}/UNLICENSE"
39+
}

srclist

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6032,6 +6032,25 @@ pkgbase = jsonnet-bundler-bin
60326032

60336033
pkgname = jsonnet-bundler-bin
60346034
---
6035+
pkgbase = kakoune-ansi-git
6036+
gives = kakoune-ansi
6037+
pkgver = 0.2.8
6038+
pkgdesc = Support for rendering ANSI-colored text in Kakoune
6039+
url = https://github.com/eraserhd/kak-ansi
6040+
arch = any
6041+
depends = kakoune
6042+
makedepends = make
6043+
makedepends = sed
6044+
checkdepends = bash
6045+
enhances = kakoune
6046+
license = Unlicense
6047+
maintainer = Erik Hedlund <erikcghedlund@outlook.com>
6048+
source = kakoune-ansi::https://github.com/eraserhd/kak-ansi.git
6049+
checkdepends_debian = moreutils
6050+
checkdepends_debian = grep
6051+
6052+
pkgname = kakoune-ansi-git
6053+
---
60356054
pkgbase = kakoune-auto-pairs-git
60366055
gives = kakoune-auto-pairs
60376056
pkgver = 0.0.1

0 commit comments

Comments
 (0)