summaryrefslogtreecommitdiffstats
path: root/rules/python3-msgpack.make
blob: 6c14688ed69bd8271dd6e32c5a9299b4c0ba3b3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*-makefile-*-
#
# Copyright (C) 2016 by Florian Scherf <f.scherf@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_PYTHON3_MSGPACK) += python3-msgpack

#
# Paths and names
#
PYTHON3_MSGPACK_VERSION	:= 0.4.8
PYTHON3_MSGPACK_MD5	:= dcd854fb41ee7584ebbf35e049e6be98
PYTHON3_MSGPACK		:= msgpack-python-$(PYTHON3_MSGPACK_VERSION)
PYTHON3_MSGPACK_SUFFIX	:= tar.gz
PYTHON3_MSGPACK_URL	:= $(call ptx/mirror-pypi, msgpack-python, $(PYTHON3_MSGPACK).$(PYTHON3_MSGPACK_SUFFIX))
PYTHON3_MSGPACK_SOURCE	:= $(SRCDIR)/$(PYTHON3_MSGPACK).$(PYTHON3_MSGPACK_SUFFIX)
PYTHON3_MSGPACK_DIR	:= $(BUILDDIR)/$(PYTHON3_MSGPACK)
PYTHON3_MSGPACK_LICENSE	:= Apache-2.0

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

PYTHON3_MSGPACK_CONF_TOOL	:= python3

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/python3-msgpack.targetinstall:
	@$(call targetinfo)

	@$(call install_init, python3-msgpack)
	@$(call install_fixup, python3-msgpack, PRIORITY, optional)
	@$(call install_fixup, python3-msgpack, SECTION, base)
	@$(call install_fixup, python3-msgpack, AUTHOR, "Florian Scherf <f.scherf@pengutronix.de>")
	@$(call install_fixup, python3-msgpack, DESCRIPTION, It`s like JSON. But fast and small.)

	@$(call install_glob, python3-msgpack, 0, 0, -, \
		$(PYTHON3_SITEPACKAGES)/msgpack,, *.py)

	@$(call install_finish, python3-msgpack)

	@$(call touch)

# vim: syntax=make