diff --git a/packagelist b/packagelist index 19b487a8cb..e267aca18d 100644 --- a/packagelist +++ b/packagelist @@ -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 diff --git a/packages/kakoune-ansi-git/.SRCINFO b/packages/kakoune-ansi-git/.SRCINFO new file mode 100644 index 0000000000..b8e107e2c2 --- /dev/null +++ b/packages/kakoune-ansi-git/.SRCINFO @@ -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 + source = kakoune-ansi::https://github.com/eraserhd/kak-ansi.git + checkdepends_debian = moreutils + checkdepends_debian = grep + +pkgname = kakoune-ansi-git diff --git a/packages/kakoune-ansi-git/kakoune-ansi-git.pacscript b/packages/kakoune-ansi-git/kakoune-ansi-git.pacscript new file mode 100644 index 0000000000..17f09b6e87 --- /dev/null +++ b/packages/kakoune-ansi-git/kakoune-ansi-git.pacscript @@ -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 ") +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" +} diff --git a/srclist b/srclist index ab5b1dbf35..95b09f2da0 100644 --- a/srclist +++ b/srclist @@ -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 + 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