wok-next view luafilesystem/receipt @ rev 21087

Updates...
Revert names: libsdl -> sdl, libsmpeg -> smpeg, libtdb -> tdb
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 28 05:11:49 2018 +0200 (2018-12-28)
parents 00c2445991e5
children
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 compile_rules() {
17 # Determine Lua version (i.e "5.3")
18 luaver=$(grep 'V=' /usr/lib/pkgconfig/lua.pc | cut -d= -f2)
19 # Fix prefix and install dir
20 sed -i "s|^PREFIX=.*|PREFIX=/usr|; s|5.1|$luaver|" $src/config
21 # Use DESTDIR
22 sed -i "s|\$(LUA_LIBDIR)|\$(DESTDIR)&|" $src/Makefile
24 make &&
25 make test &&
26 make install
27 }
29 genpkg_rules() {
30 copy @std
31 SUGGESTED="lua"
32 }