4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=https
://github.com
/latchset
/$(PKG_NAME
)/releases
/download
/v
$(PKG_VERSION
)/
16 PKG_HASH
:=5c9cdcfb535c4d9f781393d7530521c72b1dd81caa9934cab6dd752cc7efcd72
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/libjose
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 MAINTAINER
:=Tibor Dudlák
<tibor.dudlak@gmail.com
>
35 TITLE
:=Provides a full crypto stack including key generation
, signing and encryption.
37 URL
:=https
://github.com
/latchset
/jose
38 MAINTAINER
:=Tibor Dudlák
<tibor.dudlak@gmail.com
>
41 define Package
/jose
/description
42 jose is a command line utility for performing various tasks on JSON
43 Object Signing and Encryption
(JOSE
) objects. José provides a full
44 crypto stack including key generation
, signing and encryption.
47 define Package
/libjose
/description
48 libjose is a library for performing various tasks on JSON
49 Object Signing and Encryption
(JOSE
) objects. José provides a full
50 crypto stack including key generation
, signing and encryption.
53 define Build
/InstallDev
54 $(INSTALL_DIR
) $(1)/usr
/lib
55 $(INSTALL_DIR
) $(1)/usr
/include
56 $(INSTALL_DIR
) $(1)/usr
/include/$(PKG_NAME
)
57 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
$(PKG_NAME
).so
* $(1)/usr
/lib
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/$(PKG_NAME
)/*.h
$(1)/usr
/include/$(PKG_NAME
)
60 $(CP
) $(PKG_BUILD_DIR
)/*.
pc $(1)/usr
/lib
/pkgconfig
63 define Package
/libjose
/install
64 $(INSTALL_DIR
) $(1)/usr
/lib
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
$(PKG_NAME
).so
* $(1)/usr
/lib
/
68 define Package
/jose
/install
69 $(INSTALL_DIR
) $(1)/usr
/bin
70 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(PKG_NAME
) $(1)/usr
/bin
/
73 $(eval
$(call BuildPackage
,libjose
))
74 $(eval
$(call BuildPackage
,jose
))