🔒 Repository is read-only – file editing is disabled.
123456789101112131415161718192021222324252627
pkgname: tomlplusplus
pkgver: '3.4.0'
pkgrel: '3'
pkgdesc: 'Header-only TOML config file parser (C++)'
url: 'https://github.com/marzer/tomlplusplus'
arch: x86_64
license:
- BSD
depends: []
makedepends:
- cmake
- ninja
source:
- 'https://github.com/marzer/tomlplusplus/archive/refs/tags/v${pkgver}.tar.gz'
sha256sums:
- SKIP
build: |
cd ${pkgname}-${pkgver}
cmake -B build -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release
cmake --build build
package: |
cd ${pkgname}-${pkgver}
DESTDIR=${PKGDIR} cmake --install build
# tomlplusplus to biblioteka header-only bez wlasnego .pc - dostarcz go,
# bo hyprcursor (i inne) szukaja jej przez pkg-config.
install -d ${PKGDIR}/usr/lib/pkgconfig
printf 'prefix=/usr\nincludedir=${prefix}/include\n\nName: tomlplusplus\nDescription: Header-only TOML parser\nVersion: 3.4.0\nCflags: -I${includedir}\n' > ${PKGDIR}/usr/lib/pkgconfig/tomlplusplus.pc