# 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: meson ninja
# Optional: gd libjpeg-turbo libpng

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

build() {
  meson setup $name-$version build \
    --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
}
