wok-next diff lua-bitop/receipt @ rev 21386
updated nfs-utils (1.3.0 -> 2.4.3)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 17 13:40:22 2020 +0100 (2020-04-17) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/lua-bitop/receipt Fri Apr 17 13:40:22 2020 +0100 1.3 @@ -0,0 +1,50 @@ 1.4 +# SliTaz package receipt v2. 1.5 + 1.6 +ORIGIN="bitop" 1.7 +PACKAGE="lua-bitop" 1.8 +VERSION="1.0.2" 1.9 +CATEGORY="system-tools" 1.10 +SHORT_DESC="Bitwise operations on numbers" 1.11 +MAINTAINER="al.bobylev@gmail.com" 1.12 +LICENSE="MIT" 1.13 +WEB_SITE="https://bitop.luajit.org/" 1.14 +REPOLOGY="lua:bitop" 1.15 + 1.16 +TARBALL="LuaBitOp-$VERSION.tar.gz" 1.17 +WGET_URL="https://bitop.luajit.org/download/$TARBALL" 1.18 +TARBALL_SHA1="1f611edbc4f65279072c96af15bd6e455ea9dd10" 1.19 + 1.20 +BUILD_DEPENDS="lua51-dev lua52-dev lua53-dev" 1.21 +SPLIT="lua51-bitop:5.1 lua52-bitop:5.2 lua53-bitop:5.3" 1.22 + 1.23 +COPY_lua51_bitop="@std" 1.24 +COPY_lua52_bitop="@std" 1.25 +COPY_lua53_bitop="@std" 1.26 + 1.27 +DEPENDS_lua51_bitop="lua51" 1.28 +DEPENDS_lua52_bitop="lua52" 1.29 +DEPENDS_lua53_bitop="lua53" 1.30 + 1.31 +CAT_std="nopack|" 1.32 +CAT_lua51_bitop="system-tools|for Lua 5.1" 1.33 +CAT_lua52_bitop="system-tools|for Lua 5.2" 1.34 +CAT_lua53_bitop="system-tools|for Lua 5.3" 1.35 + 1.36 +compile_rules() { 1.37 + if [ -z "$SET" ]; then 1.38 + cook_pick_docs doc/* 1.39 + return 1.40 + fi 1.41 + 1.42 + # get variables from .pc file 1.43 + pc="lua${SET/./}" 1.44 + includedir=$(pkg-config --variable=includedir $pc) 1.45 + install_cmod=$(pkg-config --variable=INSTALL_CMOD $pc) 1.46 + 1.47 + DEFINES=''; [ "$SET" = '5.3' ] && DEFINES='-DLUA_NUMBER_DOUBLE' # hack 1.48 + make \ 1.49 + DEFINES="$DEFINES" \ 1.50 + INCLUDES=" -I$includedir" \ 1.51 + LUA="lua${SET/./}" && 1.52 + install -Dm755 bit.so "$install$install_cmod/bit.so" || return 1 1.53 +}