# SliTaz package receipt. PACKAGE="luafilesystem" VERSION="1.7.0.2" CATEGORY="development" SHORT_DESC="File System Library for the Lua Programming Language (5.2)." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="MIT" WEB_SITE="https://github.com/keplerproject/luafilesystem" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$WEB_SITE/archive/refs/tags/v${VERSION//./_}.tar.gz" # What is the latest version available today? current_version() { wget -O - $WEB_SITE/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;s|_|.|g;q' } SUGGESTED="lua" BUILD_DEPENDS="lua-dev" # Rules to configure and make the package. compile_rules() { make } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib/lua/5.2/ cp -a $src/src/lfs.so $fs/usr/lib/lua/5.2/ }