mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-12 14:34:20 +02:00
37 lines
975 B
Text
37 lines
975 B
Text
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=iniparser
|
|
pkgver=4.2.6
|
|
pkgrel=0
|
|
pkgdesc="C library for parsing INI-style files"
|
|
url="https://github.com/ndevilla/iniparser"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="bash cmake samurai"
|
|
subpackages="$pkgname-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/ndevilla/iniparser/archive/v$pkgver.tar.gz"
|
|
options="!check" # no tests
|
|
|
|
# secfixes:
|
|
# 4.1-r3:
|
|
# - CVE-2023-33461
|
|
|
|
build() {
|
|
if [ "$CBUILD" != "$CHOST" ]; then
|
|
local crossopts="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
|
|
fi
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
$crossopts
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
4057e65011efb005fd212c2316580b9d5d6b835f0a507001324e5ca49ad0e7656508a915484c24cd5b57aece11a9298feb5904fec3535c5191fff62706b15aa9 iniparser-4.2.6.tar.gz
|
|
"
|