app=libraqm
version=0.7.0
build=1sml
homepage="https://github.com/HOST-Oman/libraqm/"
download="https://github.com/HOST-Oman/libraqm/archive/refs/tags/v0.7.0.tar.gz"
desc="A library that encapsulates the logic for complex text layout"
requires="fribidi glib freetype graphite2 harfbuzz "

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --enable-static=no \
    --enable-shared=yes \
    --enable-fast-install=yes \
    --enable-gtk-doc=no \
    --enable-gtk-doc-html=no \
    --enable-gtk-doc-pdf=no

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
af43ca31ea525ef5c3a50b50a263b4c66a8b2fff79c490cdf101d8e1c725134f9d60e3a7400edbd3bf18cbbe0a54fa5f5b2a9262d8fc862cc45b7e834d151e92  libraqm-0.7.0.tar.lz
"
