# Description: Dynamic, any to any, pixel format translation library
# URL: https://gegl.org/babl
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: gobject-introspection lcms2
# Optional: vala

name=babl
version=0.1.108
release=1
source=(https://download.gimp.org/pub/$name/${version%.*}/$name-$version.tar.xz)

build() {
  meson setup build $name-$version \
    --prefix=/usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=true \
    -D b_pie=true
  meson compile -C build -j ${JOBS:-1}
  DESTDIR=$PKG meson install -C build
}
