wok-next view luafilesystem/receipt @ rev 20377
h8300-gdb, h8300-gcc: use gcc49
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 26 11:54:13 2017 +0100 (2017-11-26) |
parents | a5c218b2f200 |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="luafilesystem"
4 VERSION="1.6.3"
5 CATEGORY="libdevel"
6 SHORT_DESC="File system library for the Lua programming language"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://keplerproject.github.io/luafilesystem/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/keplerproject/$PACKAGE/archive/v${VERSION//./_}.tar.gz"
14 BUILD_DEPENDS="lua-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 # Determine Lua version (i.e "5.3")
20 luaver=$(grep 'V=' /usr/lib/pkgconfig/lua.pc | cut -d= -f2)
21 # Fix prefix and install dir
22 sed -i "s|^PREFIX=.*|PREFIX=/usr|; s|5.1|$luaver|" $src/config
23 # Use DESTDIR
24 sed -i "s|\$(LUA_LIBDIR)|\$(DESTDIR)&|" $src/Makefile
26 make && make test && make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 copy @std
33 SUGGESTED="lua"
34 }