wok-next diff lua-filesystem/receipt @ rev 21721
created recipes for efivar and efibootmgr
author | Hans-G?nter Theisgen |
---|---|
date | Tue Sep 01 10:09:15 2020 +0100 (2020-09-01) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/lua-filesystem/receipt Tue Sep 01 10:09:15 2020 +0100 1.3 @@ -0,0 +1,50 @@ 1.4 +# SliTaz package receipt v2. 1.5 + 1.6 +ORIGIN="luafilesystem" 1.7 +PACKAGE="lua-filesystem" 1.8 +VERSION="1.7.0.2" 1.9 +CATEGORY="libdevel" 1.10 +SHORT_DESC="File system library for the Lua programming language" 1.11 +MAINTAINER="pascal.bellard@slitaz.org" 1.12 +LICENSE="MIT" 1.13 +WEB_SITE="https://keplerproject.github.io/luafilesystem/" 1.14 +REPOLOGY="lua:filesystem" 1.15 + 1.16 +TARBALL="$ORIGIN-$VERSION.tar.gz" 1.17 +WGET_URL="https://github.com/keplerproject/$ORIGIN/archive/v${VERSION//./_}.tar.gz" 1.18 +TARBALL_SHA1="910de0959ff72703b284c26783979b663c4dc0d2" 1.19 + 1.20 +BUILD_DEPENDS="lua51-dev lua52-dev lua53-dev" 1.21 +SPLIT="lua51-filesystem:5.1 lua52-filesystem:5.2 lua53-filesystem:5.3" 1.22 + 1.23 +COPY_lua51_filesystem="@std" 1.24 +COPY_lua52_filesystem="@std" 1.25 +COPY_lua53_filesystem="@std" 1.26 + 1.27 +CAT_std="nopack|" 1.28 +CAT_lua51_filesystem="system-tools|for Lua 5.1" 1.29 +CAT_lua52_filesystem="system-tools|for Lua 5.2" 1.30 +CAT_lua53_filesystem="system-tools|for Lua 5.3" 1.31 + 1.32 +DEPENDS_lua51_filesystem="lua51" 1.33 +DEPENDS_lua52_filesystem="lua52" 1.34 +DEPENDS_lua53_filesystem="lua53" 1.35 + 1.36 +compile_rules() { 1.37 + if [ -z "$SET" ]; then 1.38 + cook_pick_docs $src/doc/us/* 1.39 + return 1.40 + fi 1.41 + 1.42 + case $ARCH in 1.43 + x86_64) CFLAGS="$CFLAGS -fPIC";; 1.44 + esac 1.45 + 1.46 + # get variables from .pc file 1.47 + pc="lua${SET/./}" 1.48 + cflags=$(pkg-config --cflags $pc) 1.49 + install_cmod=$(pkg-config --variable=INSTALL_CMOD $pc) 1.50 + 1.51 + make CFLAGS="$CFLAGS $cflags" && 1.52 + make LUA_LIBDIR=$install$install_cmod install 1.53 +}