4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
12 PKG_RELEASE
:=$(AUTORELEASE
)
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
18 PKG_MAINTAINER
:=Tibor Dudlák
<tibor.dudlak@gmail.com
>
19 PKG_LICENSE
:=Apache-2.0
20 PKG_LICENSE_FILES
:=COPYING
22 PKG_BUILD_DEPENDS
:=openssl
24 include $(INCLUDE_DIR
)/package.mk
25 include $(INCLUDE_DIR
)/meson.mk
29 TITLE
:=Provides a full crypto stack including key generation
, signing and encryption.
31 URL
:=https
://github.com
/latchset
/jose
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.
41 -Ddefault_library
=static
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
53 define Package
/jose
/install
54 $(INSTALL_DIR
) $(1)/usr
/bin
55 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(PKG_NAME
) $(1)/usr
/bin
/
58 $(eval
$(call BuildPackage
,jose
))