wok-next annotate lua-json/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents
children
rev   line source
al@21151 1 # SliTaz package receipt v2.
al@21151 2
al@21151 3 PACKAGE="lua-json"
al@21151 4 VERSION="1.3.4"
al@21151 5 CATEGORY="system-tools"
al@21151 6 SHORT_DESC="JSON parser/encoder for Lua"
al@21151 7 MAINTAINER="al.bobylev@gmail.com"
al@21151 8 LICENSE="MIT"
al@21151 9 WEB_SITE="https://github.com/harningt/luajson"
al@21151 10 HOST_ARCH="any"
al@21151 11 REPOLOGY="lua:json"
al@21151 12
al@21151 13 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@21151 14 WGET_URL="https://github.com/harningt/luajson/archive/$VERSION.tar.gz"
al@21151 15 TARBALL_SHA1="2ea25e4147ad661ff3b6d0427439bf99c06eb46d"
al@21151 16
al@21151 17 BUILD_DEPENDS="lua53-dev"
al@21151 18 DEPENDS="lua lua-lpeg" # virtual "lua" and "lua-lpeg" packages
al@21151 19
al@21151 20 compile_rules() {
al@21151 21 make \
al@21151 22 LUA_BIN=lua53 \
al@21151 23 PREFIX=/usr \
al@21151 24 INSTALL_TOP=$install \
al@21151 25 INSTALL_LMOD=/usr/share/lua/common/ \
al@21151 26 install || return 1
al@21151 27
al@21151 28 cook_pick_docs docs/*
al@21151 29
al@21151 30 find $install -exec chmod g-w '{}' \; # 664->644, 775->755
al@21151 31 }