Makefile 1.24 KB
Newer Older
1
#
2
# Copyright (C) 2015 OpenWrt.org
3 4 5 6 7 8
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk
9

10
PKG_NAME:=pyasn1
11
PKG_VERSION:=0.1.9
12 13 14
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 16 17 18 19 20 21 22
PKG_SOURCE_URL:=https://pypi.python.org/packages/source/p/pyasn1
PKG_MD5SUM:=f00a02a631d4016818659d1cc38d229a

PKG_BUILD_DEPENDS:=python python-setuptools

PKG_LICENSE:=BSD-2-Clause
PKG_LICENSE_FILES:=LICENSE.txt
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
23 24 25 26 27

include $(INCLUDE_DIR)/package.mk
$(call include_mk, python-package.mk)

define Package/python-pyasn1
28 29 30 31 32 33
	SECTION:=lang
	CATEGORY:=Languages
	SUBMENU:=Python
	TITLE:=python-pyasn1
	URL:=http://pyasn1.sourceforge.net/
	DEPENDS:=+python-light
34 35 36
endef

define Package/python-pyasn1/description
37 38 39 40
This is an implementation of ASN.1 types and codecs in Python programming
language. It has been first written to support particular protocol (SNMP)
but then generalized to be suitable for a wide range of protocols
based on ASN.1 specification.
41 42 43 44 45 46
endef

define Build/Compile
	$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
endef

47
$(eval $(call PyPackage,python-pyasn1))
48
$(eval $(call BuildPackage,python-pyasn1))