wok-next view lua-yaml/receipt @ rev 21712
updated gsoap (2.8.96 -> 2.8.104)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 06 16:25:56 2020 +0100 (2020-07-06) |
parents | |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lua-yaml"
4 VERSION="1.1.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="LibYAML binding for Lua"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MIT"
9 WEB_SITE="http://yaml.luaforge.net/"
10 REPOLOGY="lua:yaml"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/lubyk/yaml/archive/REL-$VERSION.tar.gz"
14 TARBALL_SHA1="e455ec834a0be4998b7be0d6b292fa169cbe7f89"
16 BUILD_DEPENDS="cmake yaml-dev lua51-dev lua52-dev lua53-dev"
17 SPLIT="lua51-yaml:51 lua52-yaml:52 lua53-yaml:53"
19 COPY_lua51_yaml="@std"
20 COPY_lua52_yaml="@std"
21 COPY_lua53_yaml="@std"
23 DEPENDS_lua51_yaml="lua51 lua-lub"
24 DEPENDS_lua52_yaml="lua52 lua-lub"
25 DEPENDS_lua53_yaml="lua53 lua-lub"
27 CAT_std="nopack|"
28 CAT_lua51_yaml="system-tools|for Lua 5.1"
29 CAT_lua52_yaml="system-tools|for Lua 5.2"
30 CAT_lua53_yaml="system-tools|for Lua 5.3"
32 compile_rules() {
33 if [ -z "$SET" ]; then
34 cook_pick_docs src/HISTORY src/LICENSE* src/README*
35 return
36 fi
38 # get variables from .pc file
39 pc="lua$SET"
40 cflags=$(pkg-config --cflags $pc)
41 install_lmod=$(pkg-config --variable=INSTALL_LMOD $pc)
42 install_cmod=$(pkg-config --variable=INSTALL_CMOD $pc)
44 mkdir build
45 cd build
46 cmake \
47 -DCMAKE_C_FLAGS="$CFLAGS -Wall -DNDEBUG $cflags" \
48 -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
49 -DCMAKE_SKIP_RPATH=TRUE \
50 -DCMAKE_VERBOSE_MAKEFILE=TRUE \
51 -DLUA_INSTALL_DIR=$install_lmod \
52 -DLUA_INSTALL_BINDIR=$install_cmod \
53 .. &&
54 make &&
55 make install
56 }