iniparser: library for parsing of ini files in C
authorAntonio Pastor <redacted>
Tue, 29 Apr 2025 22:51:27 +0000 (18:51 -0400)
committerHannu Nyman <redacted>
Thu, 1 May 2025 07:57:32 +0000 (10:57 +0300)
Package is present in multiple linux distributions.
Upstream is actively maintained.

Signed-off-by: Antonio Pastor <redacted>
libs/iniparser/Makefile [new file with mode: 0644]

diff --git a/libs/iniparser/Makefile b/libs/iniparser/Makefile
new file mode 100644 (file)
index 0000000..16d86eb
--- /dev/null
@@ -0,0 +1,46 @@
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=iniparser
+PKG_VERSION:=4.2.6
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://gitlab.com/$(PKG_NAME)/$(PKG_NAME)/-/archive/v$(PKG_VERSION)
+PKG_HASH:=67575ed032a544d5359610e5f697af786371bbc3eb01311218ef8adfd3e5e329
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
+
+PKG_MAINTAINER:=Antonio Pastor <antonio.pastor@gmail.com>
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=COPYING
+PKG_CPE_ID:=cpe:/a:iniparser:iniparser
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
+
+define Package/iniparser
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=a library to handle ini files
+  URL:=https://gitlab.com/iniparser/iniparser
+endef
+
+define Package/iniparser/description
+  Small and fully re-entrant module for parsing of ini files in C
+endef
+
+define Build/InstallDev
+       $(call Build/InstallDev/cmake,$(1))
+       $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/iniparser.pc
+       $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/iniparser.pc
+endef
+
+define Package/iniparser/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiniparser.so* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,iniparser))
git clone https://git.99rst.org/PROJECT