Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ joplin-desktop-app
jq-bin
jsonnet-bundler-bin
kakoune
kakoune-ansi-git
kakoune-auto-pairs-git
kakoune-kakboard-git
kakoune-lsp
Expand Down
18 changes: 18 additions & 0 deletions packages/kakoune-ansi-git/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
pkgbase = kakoune-ansi-git
gives = kakoune-ansi
pkgver = 0.2.8
pkgdesc = Support for rendering ANSI-colored text in Kakoune
url = https://github.com/eraserhd/kak-ansi
arch = any
depends = kakoune
makedepends = make
makedepends = sed
checkdepends = bash
enhances = kakoune
license = Unlicense
maintainer = Erik Hedlund <[email protected]>
source = kakoune-ansi::https://github.com/eraserhd/kak-ansi.git
checkdepends_debian = moreutils
checkdepends_debian = grep

pkgname = kakoune-ansi-git
39 changes: 39 additions & 0 deletions packages/kakoune-ansi-git/kakoune-ansi-git.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
pkgname='kakoune-ansi-git'
pkgver="0.2.8"
pkgdesc='Support for rendering ANSI-colored text in Kakoune'
gives='kakoune-ansi'
license=('Unlicense')
url='https://github.com/eraserhd/kak-ansi'
arch=('any')
maintainer=("Erik Hedlund <[email protected]>")
source=("${gives}::https://github.com/eraserhd/kak-ansi.git")
depends=('kakoune')
makedepends=('make' 'sed')
checkdepends=('bash')
checkdepends_debian=('moreutils' 'grep')
enhances=('kakoune')

prepare() {
# We wan't the expression the expand when calling the script, not now
# shellcheck disable=SC2016
sed -i 's;filterdir="$(dirname $kak_source)/..";filterdir="/usr/share/kak";' "${srcdir}/${gives}/rc/ansi.kak"
}

build() {
make -C "${srcdir}/${gives}"
}

check() {
cd "${srcdir}/${gives}"
# Four test cases are broken on Debian
if [[ "$(cut -f 1 -d ':' <<< "${DISTRO}")" == "debian" ]]; then
grep -vE '(┘┐┌└┼─├┤┴┬\│|advances using byte offset|covers ending char bytes)' './tests/tests.bash' | sponge './tests/tests.bash'
fi
bash tests/tests.bash
}

package() {
install -Dm755 "${srcdir}/${gives}/kak-ansi-filter" "${pkgdir}/usr/share/kak/kak-ansi-filter"
install -Dm644 "${srcdir}/${gives}/rc/ansi.kak" "${pkgdir}/usr/share/kak/autoload/rc/ansi.kak"
install -Dm644 "${srcdir}/${gives}/UNLICENSE" "${pkgdir}/usr/share/licenses/${gives}/UNLICENSE"
}
19 changes: 19 additions & 0 deletions srclist
Original file line number Diff line number Diff line change
Expand Up @@ -6032,6 +6032,25 @@ pkgbase = jsonnet-bundler-bin

pkgname = jsonnet-bundler-bin
---
pkgbase = kakoune-ansi-git
gives = kakoune-ansi
pkgver = 0.2.8
pkgdesc = Support for rendering ANSI-colored text in Kakoune
url = https://github.com/eraserhd/kak-ansi
arch = any
depends = kakoune
makedepends = make
makedepends = sed
checkdepends = bash
enhances = kakoune
license = Unlicense
maintainer = Erik Hedlund <[email protected]>
source = kakoune-ansi::https://github.com/eraserhd/kak-ansi.git
checkdepends_debian = moreutils
checkdepends_debian = grep

pkgname = kakoune-ansi-git
---
pkgbase = kakoune-auto-pairs-git
gives = kakoune-auto-pairs
pkgver = 0.0.1
Expand Down
Loading