mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-14 12:04:15 +02:00
62 lines
1.5 KiB
Text
62 lines
1.5 KiB
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=inih
|
|
pkgver=60
|
|
pkgrel=0
|
|
pkgdesc="Simple .INI file parser for embedded systems"
|
|
options="!check" # No testsuite in Meson, unittests always return 0
|
|
url="https://github.com/benhoyt/inih"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
makedepends="meson"
|
|
checkdepends="bash"
|
|
subpackages="
|
|
$pkgname-dev:_dev
|
|
$pkgname-inireader
|
|
$pkgname-inireader-dev
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/benhoyt/inih/archive/r$pkgver.tar.gz"
|
|
builddir="$srcdir/inih-r$pkgver"
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Ddefault_library=both \
|
|
-Ddistro_install=true \
|
|
-Dwith_INIReader=true \
|
|
-Dmulti-line_entries=true \
|
|
-Dutf-8_bom=true \
|
|
-Dinline_comments=true \
|
|
-Duse_heap=false \
|
|
. output
|
|
meson compile -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
}
|
|
|
|
inireader() {
|
|
pkgdesc="C++ library and API for inih"
|
|
amove usr/lib/libINIReader.so.*
|
|
}
|
|
|
|
_dev() {
|
|
default_dev
|
|
|
|
# Move inireader stuff out, it will be caught later
|
|
mkdir -p "$pkgdir"/usr/lib/pkgconfig "$pkgdir"/usr/include
|
|
|
|
# Headers
|
|
mv "$subpkgdir"/usr/include/INIReader.h "$pkgdir"/usr/include
|
|
|
|
# Static and Shared libraries
|
|
mv "$subpkgdir"/usr/lib/libINIReader.so "$pkgdir"/usr/lib
|
|
mv "$subpkgdir"/usr/lib/libINIReader.a "$pkgdir"/usr/lib
|
|
|
|
# Pkgconfig
|
|
mv "$subpkgdir"/usr/lib/pkgconfig/INIReader.pc "$pkgdir"/usr/lib/pkgconfig
|
|
}
|
|
|
|
sha512sums="
|
|
b58ac2395ed8e2b3fa25c3c41260ac5c6ee445d5a6520a79a4392741b417c0ea5ede12d5d89b92f8c4a9c555ff41745ea4f18b78ccbe5117eaa4c723de03b50a inih-60.tar.gz
|
|
"
|