1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: Mihai Bişog <mihai.bisog@gmail.com>
7 pkgdesc='Open-source formatting library for C++'
22 _tag=c4ee726532178e556d923372f29163bd206d7732
23 source=(git+https://github.com/fmtlib/fmt.git#tag=${_tag})
27 npm install less less-plugin-clean-css
28 sed "s/'lessc',/'npx', 'lessc',/" -i fmt/doc/build.py
37 cmake -S fmt -B build -G Ninja \
38 -DCMAKE_BUILD_TYPE=None \
39 -DCMAKE_INSTALL_PREFIX=/usr \
40 -DCMAKE_INSTALL_LIBDIR=/usr/lib \
41 -DBUILD_SHARED_LIBS=ON
43 cmake --build build --target doc
47 cmake --build build --target test
51 DESTDIR="${pkgdir}" cmake --build build --target install
52 install -Dm 644 fmt/LICENSE.rst -t "${pkgdir}"/usr/share/licenses/fmt/