APP=toluapp
VERSION=1.0.93
BUILD=1sml
HOMEPAGE='https://github.com/LuaDist/toluapp'
DOWNLOAD="https://github.com/LuaDist/toluapp/archive/refs/tags/1.0.93.tar.gz"
DESC="tool to integrate C/C++ code with Lua"
REQUIRES="lua"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION 
  fixbuilddirpermissions

  mkdir -p smbuild && cd smbuild
  cmake .. \
    -DCMAKE_INSTALL_PREFIX="" \
    -DCMAKE_BUILD_TYPE=Release

  make
  make install DESTDIR=$PKG 

  cd ..
  cp README* $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
68f169244f1b37fdeb1a72b0f8fc61a30329c0a828f46af718021c8cfa120fe15379b4b2bc10f0995de90e34735564afd6d302fa1865be60272e52e276e1114f  toluapp-1.0.93.tar.gz
"
