bigclown: use pypi.mk

Convert bigclown packages to use pypi.mk and pypi in general instead of
github.

This allows us to remove version replacement as that is already done in
pypi archive.

Updated dependencies to also contain proxy dependencies that are listed
in upstream.

Signed-off-by: Karel Kočí <karel.koci@nic.cz>
This commit is contained in:
Karel Kočí
2020-02-18 15:44:18 +01:00
parent d89b9a10ad
commit a7668c583b
4 changed files with 61 additions and 63 deletions
+19 -16
View File
@@ -8,29 +8,32 @@ PKG_NAME:=bigclown-control-tool
PKG_VERSION:=0.2.0
PKG_RELEASE:=1
PKG_SOURCE_URL:=https://codeload.github.com/bigclownlabs/bch-control-tool/tar.gz/v$(PKG_VERSION)?
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_HASH:=c79a76e0940958e4ddcf51e57fadfb127f568b6c1ceb02033c3630bab2dee612
PKG_LICENSE:=MIT
PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
PKG_BUILD_DIR:=$(BUILD_DIR)/bch-control-tool-$(PKG_VERSION)
PYPI_NAME:=bch
PKG_HASH:=4cd73b92757fce7275a4744baed411c867af2e671c521b90d6690b2320851d58
PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
include ../../../lang/python/pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../../../lang/python/python3-package.mk
define Package/$(PKG_NAME)
define Package/bigclown-control-tool
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=BigClown
URL:=https://github.com/bigclownlabs/bch-control-tool
TITLE:=BigCLown control tool
DEPENDS:=+python3-click-log +python3-paho-mqtt +python3-pyserial +python3-yaml +python3-simplejson
URL:=https://github.com/bigclownlabs/bch-control-tool
DEPENDS:=\
+python3-click \
+python3-click-log \
+python3-paho-mqtt \
+python3-pyserial \
+python3-yaml \
+python3-simplejson
VARIANT:=python3
endef
define Build/Compile
sed -i 's/@@VERSION@@/$(PKG_VERSION)/' "$(PKG_BUILD_DIR)/setup.py"
$(call Py3Build/Compile/Default)
endef
$(eval $(call Py3Package,$(PKG_NAME)))
$(eval $(call BuildPackage,$(PKG_NAME)))
$(eval $(call Py3Package,bigclown-control-tool))
$(eval $(call BuildPackage,bigclown-control-tool))