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
"
