From 48ca75555522716f0f686dcae3dd6cf3d8ad714d Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 11:05:19 +0100 Subject: removed idea of repos --- repo/iniparser/iniparser.xibuild | 24 ++++++++++++++++++++++++ repo/iniparser/rpath.patch | 10 ++++++++++ 2 files changed, 34 insertions(+) create mode 100644 repo/iniparser/iniparser.xibuild create mode 100644 repo/iniparser/rpath.patch (limited to 'repo/iniparser') diff --git a/repo/iniparser/iniparser.xibuild b/repo/iniparser/iniparser.xibuild new file mode 100644 index 0000000..7655cf5 --- /dev/null +++ b/repo/iniparser/iniparser.xibuild @@ -0,0 +1,24 @@ +#!/bin/sh + +NAME="iniparser" +DESC="C library for parsing INI-style files" + +MAKEDEPS="make " +DEPS="musl " + +PKG_VER=4.1 +SOURCE="https://github.com/ndevilla/iniparser/archive/v$PKG_VER.tar.gz" +ADDITIONAL="rpath.patch " + +build () { + make +} + +package () { + install -d "$PKG_DEST"/usr/lib "$PKG_DEST"/usr/include + install -m 644 src/dictionary.h "$PKG_DEST"/usr/include/dictionary.h + install -m 644 src/iniparser.h "$PKG_DEST"/usr/include/iniparser.h + install -m 755 libiniparser.so.1 "$PKG_DEST"/usr/lib/libiniparser.so.1 + ln -s libiniparser.so.1 "$PKG_DEST"/usr/lib/libiniparser.so + +} diff --git a/repo/iniparser/rpath.patch b/repo/iniparser/rpath.patch new file mode 100644 index 0000000..ef7097f --- /dev/null +++ b/repo/iniparser/rpath.patch @@ -0,0 +1,10 @@ +--- a/Makefile ++++ b/Makefile +@@ -21,7 +21,6 @@ + + SHLD = ${CC} ${CFLAGS} + LDSHFLAGS = -shared -Wl,-Bsymbolic +-LDFLAGS += -Wl,-rpath -Wl,/usr/lib -Wl,-rpath,/usr/lib + + # .so.0 is for version 3.x, .so.1 is 4.x + SO_TARGET ?= libiniparser.so.1 -- cgit v1.2.1