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.

56 lines
1.6 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/jose
  20. SECTION:=utils
  21. TITLE:=Provides a full crypto stack including key generation, signing and encryption.
  22. DEPENDS:=+jansson +libopenssl +zlib
  23. URL:=https://github.com/latchset/jose
  24. endef
  25. define Package/jose/description
  26. jose is a command line utility for performing various tasks on JSON
  27. Object Signing and Encryption (JOSE) objects. José provides a full
  28. crypto stack including key generation, signing and encryption.
  29. endef
  30. MESON_ARGS += \
  31. -Ddefault_library=static
  32. define Build/InstallDev
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(INSTALL_DIR) $(1)/usr/include
  35. $(INSTALL_DIR) $(1)/usr/include/$(PKG_NAME)
  36. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).a $(1)/usr/lib
  38. $(CP) $(PKG_INSTALL_DIR)/usr/include/$(PKG_NAME)/*.h $(1)/usr/include/$(PKG_NAME)
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig
  40. endef
  41. define Package/jose/install
  42. $(INSTALL_DIR) $(1)/usr/bin
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
  44. endef
  45. $(eval $(call BuildPackage,jose))