app=graphite2
version=1.3.14
build=1sml
homepage="https://github.com/silnrsi/graphite"
download="https://github.com/silnrsi/graphite/archive/refs/tags/1.3.14.tar.gz"
desc="reimplementation of the SIL Graphite text processing engine"
requires="gcc-libs"

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

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

  mkdir -p smbuild && cd smbuild

  cmake .. \
    -DCMAKE_INSTALL_PREFIX="" \
    -DCMAKE_BUILD_TYPE=Release \
    -Wno-dev

  make
  make install DESTDIR=$pkg 

  cp ../{COPYING,LICENSE} $pkgdocs/

  mkfinalpkg
}

sha512sums="
14b5eb2ba8158b8b62ffa7fb142100a0af1de0f0c45b2673801b636714a106b46fcd423b05c722d963c9543fafcf10fec811975308211a54f20a3ba322d7b295  graphite2-1.3.14.tgz
"
