Merge pull request #19372 from cotequeiroz/libgd
[feed/packages.git] / libs / jose / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=jose
11 PKG_VERSION:=11
12 PKG_RELEASE:=$(AUTORELEASE)
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=https://github.com/latchset/$(PKG_NAME)/releases/download/v$(PKG_VERSION)/
16 PKG_HASH:=e272afe7717e22790c383f3164480627a567c714ccb80c1ee96f62c9929d8225
17
18 PKG_MAINTAINER:=Tibor Dudlák <tibor.dudlak@gmail.com>
19 PKG_LICENSE:=Apache-2.0
20 PKG_LICENSE_FILES:=COPYING
21
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/meson.mk
24
25 define Package/libjose
26 SECTION:=libs
27 TITLE:=Provides a full crypto stack including key generation, signing and encryption.
28 DEPENDS:=+zlib +jansson +libopenssl +libpthread
29 URL:=https://github.com/latchset/jose
30 endef
31
32 define Package/jose
33 SECTION:=utils
34 TITLE:=Provides a full crypto stack including key generation, signing and encryption.
35 DEPENDS:=+libjose
36 URL:=https://github.com/latchset/jose
37 endef
38
39 define Package/jose/description
40 jose is a command line utility for performing various tasks on JSON
41 Object Signing and Encryption (JOSE) objects. José provides a full
42 crypto stack including key generation, signing and encryption.
43 endef
44
45 define Package/libjose/description
46 libjose is a library for performing various tasks on JSON
47 Object Signing and Encryption (JOSE) objects. José provides a full
48 crypto stack including key generation, signing and encryption.
49 endef
50
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(INSTALL_DIR) $(1)/usr/include
54 $(INSTALL_DIR) $(1)/usr/include/$(PKG_NAME)
55 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).so* $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/include/$(PKG_NAME)/*.h $(1)/usr/include/$(PKG_NAME)
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig
59 endef
60
61 define Package/libjose/install
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).so* $(1)/usr/lib/
64 endef
65
66 define Package/jose/install
67 $(INSTALL_DIR) $(1)/usr/bin
68 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
69 endef
70
71 $(eval $(call BuildPackage,libjose))
72 $(eval $(call BuildPackage,jose))