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.

71 lines
1.8 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libksba
  3. PKG_VERSION:=1.5.1
  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:=b0f4c65e4e447d9a2349f6b8c0e77a28be9531e4548ba02c545d1f46dc7bf921
  8. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  9. PKG_LICENSE:=LGPL-3.0-or-later GPL-2.0-or-later
  10. PKG_LICENSE_FILES:=COPYING.GPLv2 COPYING.GPLv3 COPYING.LGPLv3
  11. PKG_FIXUP:=autoreconf
  12. PKG_INSTALL:=1
  13. PKG_BUILD_PARALLEL:=1
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/libksba
  16. SECTION:=libs
  17. CATEGORY:=Libraries
  18. TITLE:=GnuPG X.509 library
  19. URL:=https://gnupg.org/software/libksba/index.html
  20. DEPENDS:=+libgpg-error
  21. endef
  22. define Package/libksba/description
  23. Libksba is a library to make the tasks of working with X.509 certificates, CMS data and related objects more easy.
  24. endef
  25. define Build/InstallDev
  26. $(INSTALL_DIR) $(2)/bin $(1)/usr/bin
  27. $(INSTALL_BIN) \
  28. $(PKG_INSTALL_DIR)/usr/bin/ksba-config \
  29. $(2)/bin/
  30. $(SED) \
  31. 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
  32. $(2)/bin/ksba-config
  33. ln -sf $(STAGING_DIR)/host/bin/ksba-config $(1)/usr/bin/ksba-config
  34. $(INSTALL_DIR) $(1)/usr/include
  35. $(INSTALL_DATA) \
  36. $(PKG_INSTALL_DIR)/usr/include/ksba.h \
  37. $(1)/usr/include/
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) \
  40. $(PKG_INSTALL_DIR)/usr/lib/libksba.{la,so*} \
  41. $(1)/usr/lib/
  42. $(INSTALL_DIR) $(1)/usr/share/aclocal
  43. $(INSTALL_DATA) \
  44. $(PKG_INSTALL_DIR)/usr/share/aclocal/ksba.m4 \
  45. $(1)/usr/share/aclocal/
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(INSTALL_DATA) \
  48. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ksba.pc \
  49. $(1)/usr/lib/pkgconfig
  50. endef
  51. define Package/libksba/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) \
  54. $(PKG_INSTALL_DIR)/usr/lib/libksba.so.* \
  55. $(1)/usr/lib/
  56. endef
  57. $(eval $(call BuildPackage,libksba))