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