2 # Copyright (C) 2009-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.amk.ca/files/python/crypto/
16 PKG_MD5SUM:=4d5674f3898a573691ffb335e8d749cd
18 include $(INCLUDE_DIR)/package.mk
19 $(call include_mk, python-package.mk)
21 define Package/python-crypto
26 URL:=http://www.pycrypto.org/
27 DEPENDS:=+python +libgmp
30 define Package/python-crypto/description
31 A collection of both secure hash functions (such as MD5 and SHA),
32 and various encryption algorithms (AES, DES, IDEA, RSA, ElGamal, etc.).
36 $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
39 define Package/python-crypto/install
40 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/
42 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
43 $(1)$(PYTHON_PKG_DIR)/
46 $(eval $(call BuildPackage,python-crypto))