summaryrefslogtreecommitdiffstats
path: root/rules/python3-websockets.make
blob: 32a0af5630bb874110238c94ab214d47893b36f8 (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
53
54
# -*-makefile-*-
#
# Copyright (C) 2017 by David Jander <david@protonic.nl>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_PYTHON3_WEBSOCKETS) += python3-websockets

#
# Paths and names
#
PYTHON3_WEBSOCKETS_VERSION	:= 6.0
PYTHON3_WEBSOCKETS_MD5		:= 51f6987effdab7ce35934d7caaf84b6b
PYTHON3_WEBSOCKETS		:= python3-websockets-$(PYTHON3_WEBSOCKETS_VERSION)
PYTHON3_WEBSOCKETS_SUFFIX	:= tar.gz
PYTHON3_WEBSOCKETS_URL		:= https://github.com/aaugustin/websockets/archive/$(PYTHON3_WEBSOCKETS_VERSION).$(PYTHON3_WEBSOCKETS_SUFFIX)
PYTHON3_WEBSOCKETS_SOURCE	:= $(SRCDIR)/$(PYTHON3_WEBSOCKETS).$(PYTHON3_WEBSOCKETS_SUFFIX)
PYTHON3_WEBSOCKETS_DIR		:= $(BUILDDIR)/$(PYTHON3_WEBSOCKETS)
PYTHON3_WEBSOCKETS_LICENSE	:= BSD

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

PYTHON3_WEBSOCKETS_CONF_TOOL	:= python3

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

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

	@$(call install_init, python3-websockets)
	@$(call install_fixup, python3-websockets, PRIORITY, optional)
	@$(call install_fixup, python3-websockets, SECTION, base)
	@$(call install_fixup, python3-websockets, AUTHOR, "David Jander <david@protonic.nl>")
	@$(call install_fixup, python3-websockets, DESCRIPTION, missing)

	@$(call install_glob, python3-websockets, 0, 0, -, \
		/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/websockets,, *.py)

	@$(call install_finish, python3-websockets)

	@$(call touch)

# vim: syntax=make