libsoup3: add
authorRosen Penev <rosenp@gmail.com>
Thu, 9 Jun 2022 01:06:38 +0000 (18:06 -0700)
committerRosen Penev <rosenp@gmail.com>
Thu, 22 Sep 2022 08:31:28 +0000 (01:31 -0700)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/libsoup3/Makefile [new file with mode: 0644]

diff --git a/libs/libsoup3/Makefile b/libs/libsoup3/Makefile
new file mode 100644 (file)
index 0000000..bb7f235
--- /dev/null
@@ -0,0 +1,76 @@
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libsoup3
+PKG_VERSION:=3.0.6
+PKG_RELEASE:=$(AUTORELEASE)
+
+PKG_SOURCE:=libsoup-$(PKG_VERSION).tar.xz
+PKG_SOURCE_URL:=@GNOME/libsoup/3.0
+PKG_HASH:=b45d59f840b9acf9bb45fd45854e3ef672f57e3ab957401c3ad8d7502ac23da6
+PKG_BUILD_DIR:=$(BUILD_DIR)/libsoup-$(PKG_VERSION)
+
+PKG_MAINTAINER:=
+PKG_LICENSE:=LGPL-2.1-or-later
+PKG_LICENSE_FILES:=COPYING
+PKG_CPE_ID:=cpe:/a:gnome:libsoup
+
+PKG_BUILD_DEPENDS:=glib2/host
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/nls.mk
+include $(INCLUDE_DIR)/meson.mk
+
+define Package/libsoup3
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=libsoup3
+  URL:=https://wiki.gnome.org/Projects/libsoup
+  DEPENDS:=+glib2 +libxml2 +libgnutls +libsqlite3 +libpsl +libnghttp2
+endef
+
+MESON_ARGS += \
+       -Dgssapi=disabled \
+       -Dntlm=disabled \
+       -Dbrotli=disabled \
+       -Dtls_check=false \
+       -Dintrospection=disabled \
+       -Dvapi=disabled \
+       -Dgtk_doc=false \
+       -Dtests=false \
+       -Dinstalled_tests=false \
+       -Dsysprof=disabled
+
+define package/libsoup3/decription
+Libsoup is an HTTP library implementation in C
+endef
+
+define Build/InstallDev
+       $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/libsoup-3.0/libsoup}
+
+       $(CP) \
+               $(PKG_INSTALL_DIR)/usr/lib/libsoup-3.0.so* \
+               $(1)/usr/lib/
+
+       $(INSTALL_DATA) \
+               $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
+               $(1)/usr/lib/pkgconfig/
+
+       $(INSTALL_DATA) \
+               $(PKG_INSTALL_DIR)/usr/include/libsoup-3.0/libsoup/*.h \
+               $(1)/usr/include/libsoup-3.0/libsoup/
+endef
+
+define Package/libsoup3/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) \
+               $(PKG_INSTALL_DIR)/usr/lib/libsoup-3.0.* \
+               $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libsoup3))