Skip to content
Snippets Groups Projects

Enable SIXEL in xterm

Merged Max Rees requested to merge sixel into master
3 files
+ 111
2
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 71
0
# Contributor: Max Rees <maxcrees@me.com>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=libsixel
pkgver=1.8.2
pkgrel=0
pkgdesc="Encoder/decoder implementation for DEC SIXEL graphics"
url="https://saitoha.github.io/libsixel/"
arch="all"
license="MIT AND (MIT OR Unlicense) AND (Public-Domain OR Custom)"
depends=""
makedepends="libjpeg-turbo-dev libpng-dev"
subpackages="$pkgname-dev $pkgname-doc
$pkgname-bash-completion:bashcomp:noarch
$pkgname-zsh-completion:zshcomp:noarch"
source="https://github.com/saitoha/libsixel/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz
tests.patch"
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--with-libcurl=no \
--with-gd=no \
--with-gdk-pixbuf2=no \
--with-jpeg=yes \
--with-png=yes \
--enable-tests=yes \
--enable-python=no
make
}
check() {
# Run the tests individually in order to utilize retcode since
# top-level "make test" tees output to log files
make -C src unittest
# Tee this anyway since it dumps copious SIXEL output to stdout
# in some cases...
make -C converters test 2>&1 | tee test-converters.log | grep '^\['
if ! grep -Fqx '[succeeded]' test-converters.log; then
return 1
fi
}
package() {
make DESTDIR="$pkgdir" install
}
bashcomp() {
pkgdesc="$pkgdesc (Bash completion)"
depends=""
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
mkdir -p "$subpkgdir/usr/share"
mv "$pkgdir/usr/share/bash-completion" "$subpkgdir/usr/share"
}
zshcomp() {
pkgdesc="$pkgdesc (Zsh completion)"
depends=""
install_if="$pkgname=$pkgver-r$pkgrel zsh"
mkdir -p "$subpkgdir/usr/share"
mv "$pkgdir/usr/share/zsh" "$subpkgdir/usr/share"
}
sha512sums="f0287b7b7a190f0f964e27fc65aa816a78c09de5e50045a25eb05f9b430c74f779a7d5eb591b3430a82a06621d53719bf115bcdd0b99acc9afe3cb9ab6fde271 libsixel-1.8.2.tar.gz
3118dd2a43ae56702f1a1354683c1aaee774962fc5375c3dee3ccd2fab1268f344cfe12c662e10d6c39547d23460b0189efcfa9af9c4e2cf8bb942ac31f07971 tests.patch"
Loading