#
# Copyright (C) 2015-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:=python-dbus-next
VERSION_MAJOR:=0.2
VERSION_REVISION:=2
PKG_VERSION:=$(VERSION_MAJOR).$(VERSION_REVISION)

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/altdesktop/python-dbus-next/archive/refs/tags/v0.2.2.tar.gz
PKG_MD5SUM:=03f23bdcbdd0de6ec70215ba26567c0d
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE.rst
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>

include $(INCLUDE_DIR)/package.mk
# $(call include_mk, python3-package.mk)
include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk
# $(call include_mk, pypi.mk)

PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)

define Package/python-dbus-next
	SECTION:=lang
	CATEGORY:=Languages
	SUBMENU:=Python
	TITLE:=python-dbus-next
	URL:=https://github.com/kjd/crcmod
	DEPENDS:=+python3-light
endef


define Package/python-dbus-next/description
A library to support the Internationalised Domain Names in Applications
(snap7) protocol as specified in RFC 5891. This version of the protocol
is often referred to as "snap72008" and can produce different results
from the earlier standard from 2003.
endef


$(eval $(call Py3Package,python-dbus-next))
$(eval $(call BuildPackage,python-dbus-next))

