wok-next view lua-zlib/receipt @ rev 21516

updated beep again (1.3 -> 1.4.9)
author Hans-G?nter Theisgen
date Fri Jun 19 10:42:56 2020 +0100 (2020-06-19)
parents
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lua-zlib"
4 VERSION="1.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Simple streaming interface to zlib for Lua"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/brimworks/lua-zlib"
10 REPOLOGY="lua:zlib"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/brimworks/lua-zlib/archive/v$VERSION.tar.gz"
14 TARBALL_SHA1="4005d0fc08258742558a8993fa4479307b3771dc"
16 BUILD_DEPENDS="zlib-dev lua51-dev lua52-dev lua53-dev"
17 SPLIT="lua51-zlib:5.1 lua52-zlib:5.2 lua53-zlib:5.3"
19 COPY_lua51_zlib="@std"
20 COPY_lua52_zlib="@std"
21 COPY_lua53_zlib="@std"
23 DEPENDS_lua51_zlib="lua51"
24 DEPENDS_lua52_zlib="lua52"
25 DEPENDS_lua53_zlib="lua53"
27 CAT_std="nopack|"
28 CAT_lua51_zlib="system-tools|for Lua 5.1"
29 CAT_lua52_zlib="system-tools|for Lua 5.2"
30 CAT_lua53_zlib="system-tools|for Lua 5.3"
32 compile_rules() {
33 if [ -z "$SET" ]; then
34 cook_pick_docs README
35 return
36 fi
38 case $ARCH in
39 x86_64) CFLAGS="$CFLAGS -fPIC";;
40 esac
42 # get variables from .pc file
43 pc="lua${SET/./}"
44 includedir=$(pkg-config --variable=includedir $pc)
45 libs=$(pkg-config --libs $pc)
46 install_cmod=$(pkg-config --variable=INSTALL_CMOD $pc)
48 gcc -o zlib.so -O2 $CFLAGS -shared -I$includedir lua_zlib.c $libs -lz &&
49 install -Dm755 zlib.so $install$install_cmod/zlib.so
50 }
52 testsuite() {
53 lua53 ./test.lua
54 }