summaryrefslogtreecommitdiff
path: root/repo/inih
diff options
context:
space:
mode:
Diffstat (limited to 'repo/inih')
-rw-r--r--repo/inih/inih.xibuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/repo/inih/inih.xibuild b/repo/inih/inih.xibuild
new file mode 100644
index 0000000..e01b046
--- /dev/null
+++ b/repo/inih/inih.xibuild
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+NAME="inih"
+DESC="Simple .INI file parser for embedded systems"
+
+MAKEDEPS=" meson"
+
+PKG_VER=55
+SOURCE="https://github.com/benhoyt/inih/archive/r$PKG_VER.tar.gz"
+
+prepare() {
+ sed -i "s|@PKGVER@|$PKG_VER|" meson.build
+}
+
+build() {
+ meson --prefix=/usr \
+ -Ddefault_library=both \
+ -Ddistro_install=true \
+ -Dwith_INIReader=true \
+ -Dmulti-line_entries=true \
+ -Dutf-8_bom=true \
+ -Dinline_comments=true \
+ -Duse_heap=false \
+ . output
+ meson compile ${JOBS:+-j ${JOBS}} -C output
+}
+
+package() {
+ DESTDIR="$PKG_DEST" meson install --no-rebuild -C output
+}
+