summaryrefslogtreecommitdiff
path: root/repo/inih/inih.xibuild
blob: 6de9d28e37ca054f5569733837ca60a911561fd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh

NAME="inih"
DESC="Simple .INI file parser for embedded systems"

MAKEDEPS=" meson"

PKG_VER=56
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
}