1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: Mihai Bişog <mihai.bisog@gmail.com>
7 pkgdesc='Open-source formatting library for C++'
26 _tag=a33701196adfad74917046096bf5a2aa0ab0bb50
28 git+https://github.com/fmtlib/fmt.git#tag=${_tag}
29 fmt-no-pip-no-virtualenv.patch
32 '4e19e7b2cd8fd049b7c692c0efbc4b2f1dd6062f44a600f4f47be81ed0ed14defb4285eb09b8d8fb8bb55441689c3a659e157e91d2cdd94e4d7b00c28b6534f2')
36 patch -Np1 -i ../fmt-no-pip-no-virtualenv.patch
37 git cherry-pick -n 0b0f7cfbfcebd021c910078003d413354bd843e2 # hip workaround
46 cmake -S fmt -B build -G Ninja \
47 -DCMAKE_BUILD_TYPE=None \
48 -DCMAKE_INSTALL_PREFIX=/usr \
49 -DCMAKE_INSTALL_LIBDIR=/usr/lib \
50 -DBUILD_SHARED_LIBS=ON
52 cmake --build build --target doc
56 cmake --build build --target test
60 DESTDIR="${pkgdir}" cmake --build build --target install
61 install -Dm 644 fmt/LICENSE.rst -t "${pkgdir}"/usr/share/licenses/fmt/