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.

74 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. PKG_BUILD_DEPENDS:=meson/host
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../../devel/meson/meson.mk
  20. define Package/libjose
  21. SECTION:=libs
  22. TITLE:=Provides a full crypto stack including key generation, signing and encryption.
  23. DEPENDS:=+zlib +jansson +libopenssl +libpthread
  24. URL:=https://github.com/latchset/jose
  25. endef
  26. define Package/jose
  27. SECTION:=utils
  28. TITLE:=Provides a full crypto stack including key generation, signing and encryption.
  29. DEPENDS:=+libjose
  30. URL:=https://github.com/latchset/jose
  31. endef
  32. define Package/jose/description
  33. jose is a command line utility for performing various tasks on JSON
  34. Object Signing and Encryption (JOSE) objects. José provides a full
  35. crypto stack including key generation, signing and encryption.
  36. endef
  37. define Package/libjose/description
  38. libjose is a library for performing various tasks on JSON
  39. Object Signing and Encryption (JOSE) objects. José provides a full
  40. crypto stack including key generation, signing and encryption.
  41. endef
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(INSTALL_DIR) $(1)/usr/include
  45. $(INSTALL_DIR) $(1)/usr/include/$(PKG_NAME)
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).so* $(1)/usr/lib
  48. $(CP) $(PKG_INSTALL_DIR)/usr/include/$(PKG_NAME)/*.h $(1)/usr/include/$(PKG_NAME)
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig
  50. endef
  51. define Package/libjose/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).so* $(1)/usr/lib/
  54. endef
  55. define Package/jose/install
  56. $(INSTALL_DIR) $(1)/usr/bin
  57. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
  58. endef
  59. $(eval $(call BuildPackage,libjose))
  60. $(eval $(call BuildPackage,jose))