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