[arch-commits] Commit in fmt/repos/extra-x86_64 (PKGBUILD PKGBUILD)
Maxime Gauduin
alucryd at archlinux.org
Tue Apr 7 18:35:45 UTC 2020
Date: Tuesday, April 7, 2020 @ 18:35:45
Author: alucryd
Revision: 379761
archrelease: copy trunk to extra-x86_64
Added:
fmt/repos/extra-x86_64/PKGBUILD
(from rev 379760, fmt/trunk/PKGBUILD)
Deleted:
fmt/repos/extra-x86_64/PKGBUILD
----------+
PKGBUILD | 109 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 56 insertions(+), 53 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-07 18:35:40 UTC (rev 379760)
+++ PKGBUILD 2020-04-07 18:35:45 UTC (rev 379761)
@@ -1,53 +0,0 @@
-# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
-# Contributor: Mihai Bişog <mihai.bisog at gmail.com>
-
-pkgname=fmt
-pkgver=6.1.2
-pkgrel=1
-pkgdesc='Open-source formatting library for C++'
-arch=(x86_64)
-url=https://fmtlib.net
-license=(BSD)
-makedepends=(
- cmake
- git
- ninja
-)
-provides=(libfmt.so)
-source=(git+https://github.com/fmtlib/fmt.git#tag=f94b7364b9409f05207c3af3fa4666730e11a854)
-sha256sums=(SKIP)
-
-pkgver() {
- cd fmt
-
- git describe --tags
-}
-
-prepare() {
- if [[ -d build ]]; then
- rm -rf build
- fi
- mkdir build
-}
-
-build() {
- cd build
-
- cmake ../fmt \
- -G Ninja \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=/usr/lib \
- -DBUILD_SHARED_LIBS=1
- cmake --build .
-}
-
-check() {
- cmake --build build --target test
-}
-
-package() {
- DESTDIR="${pkgdir}" cmake --build build --target install
- install -Dm 644 fmt/LICENSE.rst -t "${pkgdir}"/usr/share/licenses/fmt
-}
-
-# vim: ts=2 sw=2 et:
Copied: fmt/repos/extra-x86_64/PKGBUILD (from rev 379760, fmt/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-04-07 18:35:45 UTC (rev 379761)
@@ -0,0 +1,56 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Mihai Bişog <mihai.bisog at gmail.com>
+
+pkgname=fmt
+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=9bdd1596cef1b57b9556f8bef32dc4a32322ef3e)
+sha256sums=(SKIP)
+
+pkgver() {
+ cd fmt
+
+ git describe --tags
+}
+
+prepare() {
+ npm install less less-plugin-clean-css
+ sed "s/'lessc',/'npx', 'lessc',/" -i fmt/doc/build.py
+}
+
+build() {
+ 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 build
+ cmake --build build --target doc
+}
+
+check() {
+ cmake --build build --target test
+}
+
+package() {
+ DESTDIR="${pkgdir}" cmake --build build --target install
+ install -Dm 644 fmt/LICENSE.rst -t "${pkgdir}"/usr/share/licenses/fmt
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list