[arch-commits] Commit in fmt/trunk (PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Tue Apr 7 18:35:40 UTC 2020


    Date: Tuesday, April 7, 2020 @ 18:35:40
  Author: alucryd
Revision: 379760

upgpkg: fmt 6.2.0-1

Modified:
  fmt/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-07 18:34:24 UTC (rev 379759)
+++ PKGBUILD	2020-04-07 18:35:40 UTC (rev 379760)
@@ -2,19 +2,24 @@
 # Contributor: Mihai Bişog <mihai.bisog at gmail.com>
 
 pkgname=fmt
-pkgver=6.1.2
+pkgver=6.2.0
 pkgrel=1
 pkgdesc='Open-source formatting library for C++'
 arch=(x86_64)
 url=https://fmtlib.net
 license=(BSD)
+depends=(gcc-libs)
 makedepends=(
   cmake
+  doxygen
   git
   ninja
+  npm
+  python-pip
+  python-virtualenv
 )
 provides=(libfmt.so)
-source=(git+https://github.com/fmtlib/fmt.git#tag=f94b7364b9409f05207c3af3fa4666730e11a854)
+source=(git+https://github.com/fmtlib/fmt.git#tag=9bdd1596cef1b57b9556f8bef32dc4a32322ef3e)
 sha256sums=(SKIP)
 
 pkgver() {
@@ -24,21 +29,19 @@
 }
 
 prepare() {
-  if [[ -d build ]]; then
-    rm -rf build
-  fi
-  mkdir build
+  npm install less less-plugin-clean-css
+  sed "s/'lessc',/'npx', 'lessc',/" -i fmt/doc/build.py
 }
 
 build() {
-  cd build
-
-  cmake ../fmt \
+  cmake -S fmt -B build \
     -G Ninja \
+    -DCMAKE_BUILD_TYPE=None \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_INSTALL_LIBDIR=/usr/lib \
     -DBUILD_SHARED_LIBS=1
-  cmake --build .
+  cmake --build build
+  cmake --build build --target doc
 }
 
 check() {



More information about the arch-commits mailing list