# Maintainer: PktSurf <smlinux@pktsurf.in>
app=graphite2
version=1.3.14
build=1sml
homepage="https://github.com/silnrsi/graphite"
download="https://github.com/silnrsi/graphite/archive/refs/tags/$version.tar.gz"
desc="Reimplementation of the SIL Graphite text processing engine"
requires="gcc-libs"

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

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

build() {
  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="
756ef0da651972e779b666f22efb49ed4faf6e919cbea11a5a91f30c69f3201c8548647f1bdff0f54ce84892ac16f7cece920b6d22f88bdca433224bbe9da5b5  graphite2-1.3.14.tar.lz
"
