wok-next view lua-bitop/receipt @ rev 21722
efivar: typo in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 01 10:31:46 2020 +0000 (2020-09-01) |
parents | |
children |
line source
1 # SliTaz package receipt v2.
3 ORIGIN="bitop"
4 PACKAGE="lua-bitop"
5 VERSION="1.0.2"
6 CATEGORY="system-tools"
7 SHORT_DESC="Bitwise operations on numbers"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="MIT"
10 WEB_SITE="https://bitop.luajit.org/"
11 REPOLOGY="lua:bitop"
13 TARBALL="LuaBitOp-$VERSION.tar.gz"
14 WGET_URL="https://bitop.luajit.org/download/$TARBALL"
15 TARBALL_SHA1="1f611edbc4f65279072c96af15bd6e455ea9dd10"
17 BUILD_DEPENDS="lua51-dev lua52-dev lua53-dev"
18 SPLIT="lua51-bitop:5.1 lua52-bitop:5.2 lua53-bitop:5.3"
20 COPY_lua51_bitop="@std"
21 COPY_lua52_bitop="@std"
22 COPY_lua53_bitop="@std"
24 DEPENDS_lua51_bitop="lua51"
25 DEPENDS_lua52_bitop="lua52"
26 DEPENDS_lua53_bitop="lua53"
28 CAT_std="nopack|"
29 CAT_lua51_bitop="system-tools|for Lua 5.1"
30 CAT_lua52_bitop="system-tools|for Lua 5.2"
31 CAT_lua53_bitop="system-tools|for Lua 5.3"
33 compile_rules() {
34 if [ -z "$SET" ]; then
35 cook_pick_docs doc/*
36 return
37 fi
39 # get variables from .pc file
40 pc="lua${SET/./}"
41 includedir=$(pkg-config --variable=includedir $pc)
42 install_cmod=$(pkg-config --variable=INSTALL_CMOD $pc)
44 DEFINES=''; [ "$SET" = '5.3' ] && DEFINES='-DLUA_NUMBER_DOUBLE' # hack
45 make \
46 DEFINES="$DEFINES" \
47 INCLUDES=" -I$includedir" \
48 LUA="lua${SET/./}" &&
49 install -Dm755 bit.so "$install$install_cmod/bit.so" || return 1
50 }