wok-next diff luafilesystem/receipt @ rev 19856

Up dbus, lxdm, slitaz-configs, syslinux-slitaz-repack; add slitaz-next with all the Next-related hotfixes.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Sep 07 15:25:51 2017 +0300 (2017-09-07)
parents a5c218b2f200
children d5aab818505e
line diff
     1.1 --- a/luafilesystem/receipt	Fri Dec 05 18:06:40 2014 +0100
     1.2 +++ b/luafilesystem/receipt	Thu Sep 07 15:25:51 2017 +0300
     1.3 @@ -1,27 +1,34 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="luafilesystem"
     1.8 -VERSION="1.6.2"
     1.9 -CATEGORY="development"
    1.10 -SHORT_DESC="File System Library for the Lua Programming Language."
    1.11 +VERSION="1.6.3"
    1.12 +CATEGORY="libdevel"
    1.13 +SHORT_DESC="File system library for the Lua programming language"
    1.14  MAINTAINER="pascal.bellard@slitaz.org"
    1.15  LICENSE="MIT"
    1.16 +WEB_SITE="http://keplerproject.github.io/luafilesystem/"
    1.17 +
    1.18  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.19 -WEB_SITE="http://keplerproject.github.io/luafilesystem/"
    1.20  WGET_URL="https://github.com/keplerproject/$PACKAGE/archive/v${VERSION//./_}.tar.gz"
    1.21  
    1.22 -SUGGESTED="lua"
    1.23 -BUILD_DEPENDS="wget lua-dev"
    1.24 +BUILD_DEPENDS="lua-dev"
    1.25  
    1.26  # Rules to configure and make the package.
    1.27  compile_rules()
    1.28  {
    1.29 -	make
    1.30 +	# Determine Lua version (i.e "5.3")
    1.31 +	luaver=$(grep 'V=' /usr/lib/pkgconfig/lua.pc | cut -d= -f2)
    1.32 +	# Fix prefix and install dir
    1.33 +	sed -i "s|^PREFIX=.*|PREFIX=/usr|; s|5.1|$luaver|" $src/config
    1.34 +	# Use DESTDIR
    1.35 +	sed -i "s|\$(LUA_LIBDIR)|\$(DESTDIR)&|" $src/Makefile
    1.36 +
    1.37 +	make && make test && make install
    1.38  }
    1.39  
    1.40  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.41  genpkg_rules()
    1.42  {
    1.43 -	mkdir -p $fs/usr/lib/lua/5.2/
    1.44 -	cp -a $src/src/lfs.so $fs/usr/lib/lua/5.2/
    1.45 +	copy @std
    1.46 +	SUGGESTED="lua"
    1.47  }