← recipes

Commit 9c82d9da

0
files
+0
added
-0
deleted
@@ -1,6 +1,6 @@
1 1 pkgname: tomlplusplus
2 2 pkgver: '3.4.0'
3 -pkgrel: '1'
3 +pkgrel: '2'
4 4 pkgdesc: 'Header-only TOML config file parser (C++)'
5 5 url: 'https://github.com/marzer/tomlplusplus'
6 6 arch: x86_64
@@ -16,22 +16,20 @@ sha256sums:
16 16 - SKIP
17 17 build: |
18 18 cd ${pkgname}-${pkgver}
19 - cmake -B build -G Ninja \
20 - -DCMAKE_INSTALL_PREFIX=/usr \
21 - -DCMAKE_INSTALL_LIBDIR=lib \
22 - -DCMAKE_BUILD_TYPE=Release
19 + cmake -B build -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release
23 20 cmake --build build
24 21 package: |
25 22 cd ${pkgname}-${pkgver}
26 23 DESTDIR=${PKGDIR} cmake --install build
27 - # tomlplusplus to biblioteka header-only bez wlasnego .pc – dostarcz go,
24 + # tomlplusplus to biblioteka header-only bez wlasnego .pc - dostarcz go,
28 25 # bo hyprcursor (i inne) szukaja jej przez pkg-config.
29 26 install -d ${PKGDIR}/usr/lib/pkgconfig
30 - printf 'prefix=/usr
27 + cat > ${PKGDIR}/usr/lib/pkgconfig/tomlplusplus.pc <<'EOF'
28 +prefix=/usr
31 29 includedir=${prefix}/include
32 30
33 31 Name: tomlplusplus
34 32 Description: Header-only TOML parser
35 -Version: %s
33 +Version: 3.4.0
36 34 Cflags: -I${includedir}
37 -' "${pkgver}" > ${PKGDIR}/usr/lib/pkgconfig/tomlplusplus.pc
35 +EOF