# Description: A SIXEL encoder/decoder implementation derived from kmiya's sixel
# URL: https://github.com/libsixel/libsixel/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on:
# Optional: gd gdk-pixbuf libjpeg-turbo libpng

name=libsixel
version=1.10.5
release=1
source=(https://github.com/libsixel/libsixel/archive/v$version/$name-$version.tar.gz)

build() {
  prt-get isinst gdk-pixbuf && PKGMK_SIXEL+=' -D gdk-pixbuf2=enabled'

  meson setup $name-$version build $PKGMK_SIXEL \
    --prefix /usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=true \
    -D b_pie=true
  meson compile -C build
  DESTDIR=$PKG meson install -C build
}
