# Description: Unicode Bidirectional (BiDi) Algorithm
# URL: https://github.com/fribidi/fribidi/
# Maintainer: Tim Biermann, tbier at posteo dot de

name=fribidi
version=1.0.13
release=1
source=(https://github.com/fribidi/fribidi/releases/download/v$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
}
