# SliTaz package receipt. PACKAGE="lua5.1-mpack" VERSION="1.0.9" CATEGORY="development" SHORT_DESC="Libmpack bindings for Lua." MAINTAINER="maintainer@slitaz.org" LICENSE="MIT" WEB_SITE="https://github.com/libmpack/libmpack-lua/" REPOLOGY="lua:mpack" SOURCE="libmpack-lua" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="${WEB_SITE}archive/$VERSION.tar.gz" SUGGESTED="lua5.1" DEPENDS="libmpack" BUILD_DEPENDS="libmpack-dev lua5.1 lua5.1-dev" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { make \ FETCH=false \ LUA_INCLUDE=-I/usr/include/lua/5.1 \ USE_SYSTEM_LUA=yes \ USE_SYSTEM_MPACK=yes \ LUA_LIB=/usr/lib/lua/5.1 && make install \ FETCH=false \ LUA_INCLUDE=-I/usr/include/lua/5.1 \ USE_SYSTEM_LUA=yes \ USE_SYSTEM_MPACK=yes \ LUA_LIB=/usr/lib/lua/5.1 \ DESTDIR="$DESTDIR" } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_files *.so* }