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.

73 lines
1.9 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libassuan
  3. PKG_VERSION:=2.5.5
  4. PKG_RELEASE:=$(AUTORELEASE)
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  6. PKG_SOURCE_URL:=https://gnupg.org/ftp/gcrypt/$(PKG_NAME)
  7. PKG_HASH:=8e8c2fcc982f9ca67dcbb1d95e2dc746b1739a4668bc20b3a3c5be632edb34e4
  8. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  9. PKG_LICENSE:=GPL-3.0-or-later
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_FIXUP:=autoreconf
  12. PKG_INSTALL:=1
  13. PKG_BUILD_PARALLEL:=1
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/libassuan
  16. SECTION:=libs
  17. CATEGORY:=Libraries
  18. TITLE:=GnuPG IPC library
  19. URL:=https://gnupg.org/software/libassuan/index.html
  20. DEPENDS:=+libgpg-error
  21. endef
  22. define Package/libassuan/description
  23. Libassuan is a small library implementing the so-called Assuan
  24. protocol. This protocol is used for IPC between most newer GnuPG
  25. components. Both, server and client side functions are provided.
  26. endef
  27. define Build/InstallDev
  28. $(INSTALL_DIR) $(2)/bin $(1)/usr/bin
  29. $(INSTALL_BIN) \
  30. $(PKG_INSTALL_DIR)/usr/bin/libassuan-config \
  31. $(2)/bin/
  32. $(SED) \
  33. 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
  34. $(2)/bin/libassuan-config
  35. ln -sf $(STAGING_DIR)/host/bin/libassuan-config $(1)/usr/bin/libassuan-config
  36. $(INSTALL_DIR) $(1)/usr/include
  37. $(INSTALL_DATA) \
  38. $(PKG_INSTALL_DIR)/usr/include/assuan.h \
  39. $(1)/usr/include/
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) \
  42. $(PKG_INSTALL_DIR)/usr/lib/libassuan.{la,so*} \
  43. $(1)/usr/lib/
  44. $(INSTALL_DIR) $(1)/usr/share/aclocal
  45. $(INSTALL_DATA) \
  46. $(PKG_INSTALL_DIR)/usr/share/aclocal/libassuan.m4 \
  47. $(1)/usr/share/aclocal/
  48. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  49. $(INSTALL_DATA) \
  50. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libassuan.pc \
  51. $(1)/usr/lib/pkgconfig
  52. endef
  53. define Package/libassuan/install
  54. $(INSTALL_DIR) $(1)/usr/lib
  55. $(CP) \
  56. $(PKG_INSTALL_DIR)/usr/lib/libassuan.so.* \
  57. $(1)/usr/lib/
  58. endef
  59. $(eval $(call BuildPackage,libassuan))