2 # Copyright (C) 2009-2015 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
:=https
://ftp.dlitz.net
/pub
/dlitz
/crypto
/pycrypto
/
16 PKG_HASH
:=f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c
18 PKG_LICENSE
:=Public Domain
19 PKG_LICENSE_FILES
:=COPYRIGHT
20 PKG_MAINTAINER
:=Jeffery To
<jeffery.to@gmail.com
>
22 include $(INCLUDE_DIR
)/package.mk
23 $(call include_mk
, python-package.mk
)
25 define Package
/python-crypto
30 URL
:=http
://www.pycrypto.org
/
31 DEPENDS
:=+python
+libgmp
34 define Package
/python-crypto
/description
35 A collection of both secure hash functions
(such
as MD5 and SHA
),
36 and various encryption algorithms
(AES
, DES
, IDEA
, RSA
, ElGamal
, etc.
).
40 $(call Build
/Compile
/PyMod
,,\
41 install --prefix=/usr
--root
=$(PKG_INSTALL_DIR
),\
42 CONFIG_BIG_ENDIAN
="$(CONFIG_BIG_ENDIAN)" \
46 define Package
/python-crypto
/install
47 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)/
49 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/* \
50 $(1)$(PYTHON_PKG_DIR
)/
53 $(eval
$(call PyPackage
,python-crypto
))
54 $(eval
$(call BuildPackage
,python-crypto
))