Browse Source

[trunk] -> [extra] 'fmt-6.0.0-1' add

master
artoo 1 month ago
parent
commit
5c0413f3c8
Signed by: artoo <artoo@artixlinux.org> GPG Key ID: 3292CD0BB0DB310B
1 changed files with 48 additions and 0 deletions
  1. 48
    0
      fmt/repos/extra-x86_64/PKGBUILD

+ 48
- 0
fmt/repos/extra-x86_64/PKGBUILD View File

@@ -0,0 +1,48 @@
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Mihai Bişog <mihai.bisog@gmail.com>
pkgname=fmt
pkgver=6.0.0
pkgrel=1
pkgdesc='Open-source formatting library for C++'
arch=(x86_64)
url='http://fmtlib.net'
license=(BSD)
makedepends=(
cmake
git
ninja
)
provides=(libfmt.so)

source=(git+https://github.com/fmtlib/fmt.git#tag=${pkgver})
sha256sums=('SKIP')

prepare() {
if [[ -d build ]]; then
rm -rf build
fi
mkdir build
}

build() {
cd build

cmake ../fmt \
-G Ninja \
-DCMAKE_BUILD_TYPE='Release' \
-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:

Loading…
Cancel
Save