wok-next view lua-filesystem/receipt @ rev 21613
updated eboard (1.1.1 -> 1.1.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 25 10:33:28 2020 +0100 (2020-06-25) |
parents | |
children |
line source
1 # SliTaz package receipt v2.
3 ORIGIN="luafilesystem"
4 PACKAGE="lua-filesystem"
5 VERSION="1.7.0.2"
6 CATEGORY="libdevel"
7 SHORT_DESC="File system library for the Lua programming language"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://keplerproject.github.io/luafilesystem/"
11 REPOLOGY="lua:filesystem"
13 TARBALL="$ORIGIN-$VERSION.tar.gz"
14 WGET_URL="https://github.com/keplerproject/$ORIGIN/archive/v${VERSION//./_}.tar.gz"
15 TARBALL_SHA1="910de0959ff72703b284c26783979b663c4dc0d2"
17 BUILD_DEPENDS="lua51-dev lua52-dev lua53-dev"
18 SPLIT="lua51-filesystem:5.1 lua52-filesystem:5.2 lua53-filesystem:5.3"
20 COPY_lua51_filesystem="@std"
21 COPY_lua52_filesystem="@std"
22 COPY_lua53_filesystem="@std"
24 CAT_std="nopack|"
25 CAT_lua51_filesystem="system-tools|for Lua 5.1"
26 CAT_lua52_filesystem="system-tools|for Lua 5.2"
27 CAT_lua53_filesystem="system-tools|for Lua 5.3"
29 DEPENDS_lua51_filesystem="lua51"
30 DEPENDS_lua52_filesystem="lua52"
31 DEPENDS_lua53_filesystem="lua53"
33 compile_rules() {
34 if [ -z "$SET" ]; then
35 cook_pick_docs $src/doc/us/*
36 return
37 fi
39 case $ARCH in
40 x86_64) CFLAGS="$CFLAGS -fPIC";;
41 esac
43 # get variables from .pc file
44 pc="lua${SET/./}"
45 cflags=$(pkg-config --cflags $pc)
46 install_cmod=$(pkg-config --variable=INSTALL_CMOD $pc)
48 make CFLAGS="$CFLAGS $cflags" &&
49 make LUA_LIBDIR=$install$install_cmod install
50 }