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.

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