# Maintainer: PktSurf <smlinux@pktsurf.in>
app=toluapp
version=1.0.93
build=2sml
homepage="https://github.com/LuaDist/toluapp"
download="https://github.com/LuaDist/toluapp/archive/refs/tags/$version.tar.gz"
desc="tool to integrate C/C++ code with Lua"
requires="lua"

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

  make
  make install DESTDIR=$pkg 

  cp ../README* $pkgdocs/

  mkfinalpkg
}

sha512sums="
dcfbc7ebd80d4901f99a24499d67e2d5fdd2572b8313c5d53bc74c9fe7c77873c2a918ff170ea49fe994d3e31cee2e6ff5c54cbbca940a4c8212c7cd1067cd96  toluapp-1.0.93.tar.lz
"
