wok-next annotate lua-bitop/receipt @ rev 21247

updated cyrus-imapd (2.4.17 -> 3.0.12)
author Hans-G?nter Theisgen
date Thu Dec 05 16:28:27 2019 +0100 (2019-12-05)
parents
children
rev   line source
al@21151 1 # SliTaz package receipt v2.
al@21151 2
al@21151 3 ORIGIN="bitop"
al@21151 4 PACKAGE="lua-bitop"
al@21151 5 VERSION="1.0.2"
al@21151 6 CATEGORY="system-tools"
al@21151 7 SHORT_DESC="Bitwise operations on numbers"
al@21151 8 MAINTAINER="al.bobylev@gmail.com"
al@21151 9 LICENSE="MIT"
al@21151 10 WEB_SITE="https://bitop.luajit.org/"
al@21151 11 REPOLOGY="lua:bitop"
al@21151 12
al@21151 13 TARBALL="LuaBitOp-$VERSION.tar.gz"
al@21151 14 WGET_URL="https://bitop.luajit.org/download/$TARBALL"
al@21151 15 TARBALL_SHA1="1f611edbc4f65279072c96af15bd6e455ea9dd10"
al@21151 16
al@21151 17 BUILD_DEPENDS="lua51-dev lua52-dev lua53-dev"
al@21151 18 SPLIT="lua51-bitop:5.1 lua52-bitop:5.2 lua53-bitop:5.3"
al@21151 19
al@21151 20 COPY_lua51_bitop="@std"
al@21151 21 COPY_lua52_bitop="@std"
al@21151 22 COPY_lua53_bitop="@std"
al@21151 23
al@21151 24 DEPENDS_lua51_bitop="lua51"
al@21151 25 DEPENDS_lua52_bitop="lua52"
al@21151 26 DEPENDS_lua53_bitop="lua53"
al@21151 27
al@21151 28 CAT_std="nopack|"
al@21151 29 CAT_lua51_bitop="system-tools|for Lua 5.1"
al@21151 30 CAT_lua52_bitop="system-tools|for Lua 5.2"
al@21151 31 CAT_lua53_bitop="system-tools|for Lua 5.3"
al@21151 32
al@21151 33 compile_rules() {
al@21151 34 if [ -z "$SET" ]; then
al@21151 35 cook_pick_docs doc/*
al@21151 36 return
al@21151 37 fi
al@21151 38
al@21151 39 # get variables from .pc file
al@21151 40 pc="lua${SET/./}"
al@21151 41 includedir=$(pkg-config --variable=includedir $pc)
al@21151 42 install_cmod=$(pkg-config --variable=INSTALL_CMOD $pc)
al@21151 43
al@21151 44 DEFINES=''; [ "$SET" = '5.3' ] && DEFINES='-DLUA_NUMBER_DOUBLE' # hack
al@21151 45 make \
al@21151 46 DEFINES="$DEFINES" \
al@21151 47 INCLUDES=" -I$includedir" \
al@21151 48 LUA="lua${SET/./}" &&
al@21151 49 install -Dm755 bit.so "$install$install_cmod/bit.so" || return 1
al@21151 50 }