summaryrefslogtreecommitdiffstats
path: root/plugins/luarocks/lua-rapidjson.mk
blob: d9ccdaf3e4e436059999af0ca6a9c95888bc8bff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This file is part of MXE.
# See index.html for further information.

PKG             := lua-rapidjson
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 0.2.2-1
$(PKG)_CHECKSUM := 10783d8633df3f50b1ad33c7de89d2a94a7d9cf45e2ce5217d0d2d5e77396fd2
$(PKG)_SUBDIR   := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE     := $($(PKG)_SUBDIR).tar.gz
$(PKG)_URL      := https://github.com/xpol/lua-rapidjson/archive/v$($(PKG)_VERSION).tar.gz
$(PKG)_DEPS     := gcc luarocks

define $(PKG)_UPDATE
    $(call MXE_GET_GITHUB_TAGS, xpol/lua-rapidjson) | \
    $(SED) 's,^v,,g'
endef

# shared-only because luarocks is shared-only

define $(PKG)_BUILD_SHARED
    cd '$(1)' && '$(TARGET)-luarocks' make
endef