2022-01-03 12:05:28 +01:00
|
|
|
# Description: ini file parser
|
2023-05-28 10:33:00 +02:00
|
|
|
# URL: https://github.com/ndevilla/iniparser
|
2022-01-03 12:05:28 +01:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2024-05-21 18:54:34 +02:00
|
|
|
# Depends on:
|
2022-01-03 12:05:28 +01:00
|
|
|
|
|
|
|
name=iniparser
|
2024-05-21 18:54:34 +02:00
|
|
|
version=4.2.2
|
2022-01-03 12:05:28 +01:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/ndevilla/iniparser/archive/v$version/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
2024-05-21 18:54:34 +02:00
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
|
|
-D BUILD_DOCS=OFF \
|
|
|
|
-Wno-dev
|
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2022-01-03 12:05:28 +01:00
|
|
|
}
|