2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:=bcrypt-
$(PKG_VERSION
).
tar.gz
13 PKG_SOURCE_URL
:= https
://files.pythonhosted.org
/packages
/source
/b
/$(PKG_NAME
)
14 PKG_HASH
:=44636759d222baa62806bbceb20e96f75a015a6381690d1bc2eda91c01ec02ea
16 PKG_LICENSE
:=Apache-2.0
17 PKG_LICENSE_FILES
:=LICENSE
18 PKG_MAINTAINER
:=Daniel Dickinson
<cshored@thecshore.com
>
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(BUILD_VARIANT
)-bcrypt-
$(PKG_VERSION
)
22 include $(INCLUDE_DIR
)/package.mk
24 include ..
/python-package.mk
25 include ..
/python3-package.mk
27 PKG_UNPACK
:=$(HOST_TAR
) -C
$(PKG_BUILD_DIR
) --strip-components
=1 -xzf
$(DL_DIR
)/$(PKG_SOURCE
)
29 define Package
/bcrypt
/Default
33 URL
:=https
://github.com
/pyca
/bcrypt
/
36 define Package
/python-bcrypt
37 $(call Package
/bcrypt
/Default
)
39 DEPENDS
+=+PACKAGE_python-bcrypt
:python
+PACKAGE_python-bcrypt
:python-cffi \
40 +PACKAGE_python-bcrypt
:python-six
44 define Package
/python3-bcrypt
45 $(call Package
/bcrypt
/Default
)
47 DEPENDS
+=+PACKAGE_python3-bcrypt
:python3
+PACKAGE_python3-bcrypt
:python3-cffi \
48 +PACKAGE_python3-bcrypt
:python3-six
52 define Package
/python-bcrypt
/description
53 Good password hashing for your software and your servers
56 define Package
/python3-bcrypt
/description
57 $(call Package
/python-bcrypt
/description
)
62 $(eval
$(call PyPackage
,python-bcrypt
))
63 $(eval
$(call Py3Package
,python3-bcrypt
))
65 $(eval
$(call BuildPackage
,python-bcrypt
))
66 $(eval
$(call BuildPackage
,python-bcrypt-src
))
67 $(eval
$(call BuildPackage
,python3-bcrypt
))
68 $(eval
$(call BuildPackage
,python3-bcrypt-src
))