wok-next diff lua-yaml/receipt @ rev 21469

updated tinc (1.0.25 -> 1.0.36)
author Hans-G?nter Theisgen
date Wed May 13 07:41:00 2020 +0100 (2020-05-13)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lua-yaml/receipt	Wed May 13 07:41:00 2020 +0100
     1.3 @@ -0,0 +1,56 @@
     1.4 +# SliTaz package receipt v2.
     1.5 +
     1.6 +PACKAGE="lua-yaml"
     1.7 +VERSION="1.1.2"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="LibYAML binding for Lua"
    1.10 +MAINTAINER="al.bobylev@gmail.com"
    1.11 +LICENSE="MIT"
    1.12 +WEB_SITE="http://yaml.luaforge.net/"
    1.13 +REPOLOGY="lua:yaml"
    1.14 +
    1.15 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16 +WGET_URL="https://github.com/lubyk/yaml/archive/REL-$VERSION.tar.gz"
    1.17 +TARBALL_SHA1="e455ec834a0be4998b7be0d6b292fa169cbe7f89"
    1.18 +
    1.19 +BUILD_DEPENDS="cmake yaml-dev lua51-dev lua52-dev lua53-dev"
    1.20 +SPLIT="lua51-yaml:51 lua52-yaml:52 lua53-yaml:53"
    1.21 +
    1.22 +COPY_lua51_yaml="@std"
    1.23 +COPY_lua52_yaml="@std"
    1.24 +COPY_lua53_yaml="@std"
    1.25 +
    1.26 +DEPENDS_lua51_yaml="lua51 lua-lub"
    1.27 +DEPENDS_lua52_yaml="lua52 lua-lub"
    1.28 +DEPENDS_lua53_yaml="lua53 lua-lub"
    1.29 +
    1.30 +CAT_std="nopack|"
    1.31 +CAT_lua51_yaml="system-tools|for Lua 5.1"
    1.32 +CAT_lua52_yaml="system-tools|for Lua 5.2"
    1.33 +CAT_lua53_yaml="system-tools|for Lua 5.3"
    1.34 +
    1.35 +compile_rules() {
    1.36 +	if [ -z "$SET" ]; then
    1.37 +		cook_pick_docs src/HISTORY src/LICENSE* src/README*
    1.38 +		return
    1.39 +	fi
    1.40 +
    1.41 +	# get variables from .pc file
    1.42 +	pc="lua$SET"
    1.43 +	cflags=$(pkg-config --cflags $pc)
    1.44 +	install_lmod=$(pkg-config --variable=INSTALL_LMOD $pc)
    1.45 +	install_cmod=$(pkg-config --variable=INSTALL_CMOD $pc)
    1.46 +
    1.47 +	mkdir build
    1.48 +	cd    build
    1.49 +	cmake \
    1.50 +		-DCMAKE_C_FLAGS="$CFLAGS -Wall -DNDEBUG $cflags" \
    1.51 +		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
    1.52 +		-DCMAKE_SKIP_RPATH=TRUE \
    1.53 +		-DCMAKE_VERBOSE_MAKEFILE=TRUE \
    1.54 +		-DLUA_INSTALL_DIR=$install_lmod \
    1.55 +		-DLUA_INSTALL_BINDIR=$install_cmod \
    1.56 +		.. &&
    1.57 +	make &&
    1.58 +	make install
    1.59 +}