smlinux/base/iniparser/iniparser.SMBuild

34 lines
896 B
Text
Executable file

app=iniparser
version=4.1
build=1sml
homepage="https://github.com/ndevilla/iniparser"
download="https://github.com/ndevilla/iniparser/archive/refs/tags/v$version.tar.gz"
desc="Stand-alone ini file parsing library written in ANSI C"
requires="musl"
build() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
make
install -Dm 644 src/iniparser.h $pkg/include/iniparser.h
install -Dm 644 src/dictionary.h $pkg/include/dictionary.h
install -Dm 644 libiniparser.so.1 $pkg/lib/libiniparser.so.1
cp LICENSE $pkgdocs/
(
cd $pkg/lib ; ln -s libiniparser.so.1 libiniparser.so
chrpath $pkg/lib/libiniparser.so.1
)
mkfinalpkg
}
sha512sums="
a8125aaaead1f9dfde380fa1e45bae31ca2312be029f2c53b4072cb3b127d16578a95c7c0aee1e3dda5e7b8db7a865ba6dfe8a1d80eb673061b3babef744e968 iniparser-4.1.tar.gz
"