wok-next diff lua-zlib/receipt @ rev 21370
updated minidlna (1.1.4 -> 1.2.1)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 16 09:58:07 2020 +0100 (2020-04-16) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/lua-zlib/receipt Thu Apr 16 09:58:07 2020 +0100 1.3 @@ -0,0 +1,54 @@ 1.4 +# SliTaz package receipt v2. 1.5 + 1.6 +PACKAGE="lua-zlib" 1.7 +VERSION="1.2" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Simple streaming interface to zlib for Lua" 1.10 +MAINTAINER="al.bobylev@gmail.com" 1.11 +LICENSE="MIT" 1.12 +WEB_SITE="https://github.com/brimworks/lua-zlib" 1.13 +REPOLOGY="lua:zlib" 1.14 + 1.15 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.16 +WGET_URL="https://github.com/brimworks/lua-zlib/archive/v$VERSION.tar.gz" 1.17 +TARBALL_SHA1="4005d0fc08258742558a8993fa4479307b3771dc" 1.18 + 1.19 +BUILD_DEPENDS="zlib-dev lua51-dev lua52-dev lua53-dev" 1.20 +SPLIT="lua51-zlib:5.1 lua52-zlib:5.2 lua53-zlib:5.3" 1.21 + 1.22 +COPY_lua51_zlib="@std" 1.23 +COPY_lua52_zlib="@std" 1.24 +COPY_lua53_zlib="@std" 1.25 + 1.26 +DEPENDS_lua51_zlib="lua51" 1.27 +DEPENDS_lua52_zlib="lua52" 1.28 +DEPENDS_lua53_zlib="lua53" 1.29 + 1.30 +CAT_std="nopack|" 1.31 +CAT_lua51_zlib="system-tools|for Lua 5.1" 1.32 +CAT_lua52_zlib="system-tools|for Lua 5.2" 1.33 +CAT_lua53_zlib="system-tools|for Lua 5.3" 1.34 + 1.35 +compile_rules() { 1.36 + if [ -z "$SET" ]; then 1.37 + cook_pick_docs README 1.38 + return 1.39 + fi 1.40 + 1.41 + case $ARCH in 1.42 + x86_64) CFLAGS="$CFLAGS -fPIC";; 1.43 + esac 1.44 + 1.45 + # get variables from .pc file 1.46 + pc="lua${SET/./}" 1.47 + includedir=$(pkg-config --variable=includedir $pc) 1.48 + libs=$(pkg-config --libs $pc) 1.49 + install_cmod=$(pkg-config --variable=INSTALL_CMOD $pc) 1.50 + 1.51 + gcc -o zlib.so -O2 $CFLAGS -shared -I$includedir lua_zlib.c $libs -lz && 1.52 + install -Dm755 zlib.so $install$install_cmod/zlib.so 1.53 +} 1.54 + 1.55 +testsuite() { 1.56 + lua53 ./test.lua 1.57 +}