#
# Copyright (C) 2007-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=bluepy
PKG_VERSION:=1.1.4
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://pypi.python.org/packages/85/06/0729bd5860a6658d3ddd38061caaa14914c0843cfb1305703724bd807005/
PKG_HASH:=d619205cf52107da69fd8a5200f380372fc7b22e77e2555cb9aca1682d79df70
PKG_MAINTAINER:=Mirko Vogt <mirko-openwrt@nanl.de>
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk
define Package/bluepy
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=python-bluepy
DEPENDS:=+python3-light +glib2
endef
define Package/bluepy/description
Python interface to Bluetooth LE on Linux
endef
#define Build/Compile
# $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
#endef
MAKE_PATH:=bluepy/
define Build/Compile
$(call Build/Compile/Default)
$(call Py3Build/Compile)
endef
define Package/bluepy/install
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
$(CP) \
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
$(1)$(PYTHON_PKG_DIR)
$(RM) $(1)$(PYTHON_PKG_DIR)/usr/lib/python3*/site-packages/bluepy/{bluepy-helper.c,Makefile,bluez-src.tgz}
endef
#$(eval $(call Py3Package,bluepy))
$(eval $(call BuildPackage,bluepy))