smlinux/base/iniparser/iniparser.SMBuild
PktSurf 887b96a3e3 Added dmraid, iniparser, mozjs, libatasmart, libblockdev, libbytesize,
libyaml, ndctl, polkit, udisks to base and updated base build list
Fixed base/gcc-libs build file
Removed old incomplete base/rust build file
2022-02-28 09:37:31 +05:30

34 lines
891 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/v4.1.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
"