summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle2020-10-20 18:32:41 +0000
committerDaniel Golle2020-11-07 15:51:49 +0000
commite24e8fa98c813911419271d64433deb2b453fa02 (patch)
tree48447ef8567bfe3b1ee27b29d395360a2370bff1
parentc06b99146c7910a5b3d03d5daa5464cf1fcaf1c9 (diff)
downloadpackages-e24e8fa98c813911419271d64433deb2b453fa02.tar.gz
libassuan: new package
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r--libs/libassuan/Makefile73
1 files changed, 73 insertions, 0 deletions
diff --git a/libs/libassuan/Makefile b/libs/libassuan/Makefile
new file mode 100644
index 0000000000..886d1a3329
--- /dev/null
+++ b/libs/libassuan/Makefile
@@ -0,0 +1,73 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libassuan
+PKG_VERSION:=2.5.3
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=https://gnupg.org/ftp/gcrypt/$(PKG_NAME)
+PKG_HASH:=91bcb0403866b4e7c4bc1cc52ed4c364a9b5414b3994f718c70303f7f765e702
+
+PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
+PKG_LICENSE:=GPL-3.0-or-later
+PKG_LICENSE_FILES:=COPYING
+
+PKG_FIXUP:=autoreconf
+PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libassuan
+ SECTION:=libs
+ CATEGORY:=Libraries
+ TITLE:=GnuPG IPC library
+ URL:=https://gnupg.org/software/libassuan/index.html
+ DEPENDS:=+libgpg-error
+endef
+
+define Package/libassuan/description
+Libassuan is a small library implementing the so-called Assuan
+protocol. This protocol is used for IPC between most newer GnuPG
+components. Both, server and client side functions are provided.
+endef
+
+define Build/InstallDev
+ $(INSTALL_DIR) $(2)/bin $(1)/usr/bin
+ $(INSTALL_BIN) \
+ $(PKG_INSTALL_DIR)/usr/bin/libassuan-config \
+ $(2)/bin/
+ $(SED) \
+ 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
+ $(2)/bin/libassuan-config
+ ln -sf $(STAGING_DIR)/host/bin/libassuan-config $(1)/usr/bin/libassuan-config
+
+ $(INSTALL_DIR) $(1)/usr/include
+ $(INSTALL_DATA) \
+ $(PKG_INSTALL_DIR)/usr/include/assuan.h \
+ $(1)/usr/include/
+
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) \
+ $(PKG_INSTALL_DIR)/usr/lib/libassuan.{la,so*} \
+ $(1)/usr/lib/
+
+ $(INSTALL_DIR) $(1)/usr/share/aclocal
+ $(INSTALL_DATA) \
+ $(PKG_INSTALL_DIR)/usr/share/aclocal/libassuan.m4 \
+ $(1)/usr/share/aclocal/
+
+ $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+ $(INSTALL_DATA) \
+ $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libassuan.pc \
+ $(1)/usr/lib/pkgconfig
+endef
+
+define Package/libassuan/install
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) \
+ $(PKG_INSTALL_DIR)/usr/lib/libassuan.so.* \
+ $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libassuan))