You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.2 KiB

  1. #
  2. # Author: Tibor Dudlák
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=jose
  9. PKG_VERSION:=11
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://github.com/latchset/$(PKG_NAME)/releases/download/v$(PKG_VERSION)/
  13. PKG_HASH:=e272afe7717e22790c383f3164480627a567c714ccb80c1ee96f62c9929d8225
  14. PKG_MAINTAINER:=Tibor Dudlák <tibor.dudlak@gmail.com>
  15. PKG_LICENSE:=Apache-2.0
  16. PKG_LICENSE_FILES:=COPYING
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/meson.mk
  19. define Package/libjose
  20. SECTION:=libs
  21. TITLE:=Provides a full crypto stack including key generation, signing and encryption.
  22. DEPENDS:=+zlib +jansson +libopenssl +libpthread
  23. URL:=https://github.com/latchset/jose
  24. endef
  25. define Package/jose
  26. SECTION:=utils
  27. TITLE:=Provides a full crypto stack including key generation, signing and encryption.
  28. DEPENDS:=+libjose
  29. URL:=https://github.com/latchset/jose
  30. endef
  31. define Package/jose/description
  32. jose is a command line utility for performing various tasks on JSON
  33. Object Signing and Encryption (JOSE) objects. José provides a full
  34. crypto stack including key generation, signing and encryption.
  35. endef
  36. define Package/libjose/description
  37. libjose is a library for performing various tasks on JSON
  38. Object Signing and Encryption (JOSE) objects. José provides a full
  39. crypto stack including key generation, signing and encryption.
  40. endef
  41. define Build/InstallDev
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(INSTALL_DIR) $(1)/usr/include
  44. $(INSTALL_DIR) $(1)/usr/include/$(PKG_NAME)
  45. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).so* $(1)/usr/lib
  47. $(CP) $(PKG_INSTALL_DIR)/usr/include/$(PKG_NAME)/*.h $(1)/usr/include/$(PKG_NAME)
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig
  49. endef
  50. define Package/libjose/install
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).so* $(1)/usr/lib/
  53. endef
  54. define Package/jose/install
  55. $(INSTALL_DIR) $(1)/usr/bin
  56. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
  57. endef
  58. $(eval $(call BuildPackage,libjose))
  59. $(eval $(call BuildPackage,jose))