37 lines
958 B
Text
Executable file
37 lines
958 B
Text
Executable file
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
|
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"
|
|
|
|
prepbuilddir() {
|
|
mkandenterbuilddir
|
|
rm -rf $app-$version
|
|
|
|
tar xf $srcdir/$app-$version.tar.?z*
|
|
cd $app-$version
|
|
fixbuilddirpermissions
|
|
}
|
|
|
|
build() {
|
|
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="
|
|
19780c1bd520a867bf68cb2c156257fb45355b1677e3bc601fea64b5edb01f6b351ce9f6f68f0db56f962a7cc25a3c64008501d137c7c4fb2192ffacfeac595a iniparser-4.1.tar.lz
|
|
"
|