2019-09-01 10:20:21 +00:00
|
|
|
# Description: An open-source formatting library
|
2020-07-07 16:29:01 +00:00
|
|
|
# URL: https://fmtlib.net/latest/index.html
|
2019-09-01 10:20:21 +00:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: cmake
|
|
|
|
|
|
|
|
name=fmt
|
2020-11-02 14:35:59 +00:00
|
|
|
version=7.1.1
|
2019-09-01 10:20:21 +00:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/fmtlib/$name/archive/$version/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
2020-11-02 14:35:59 +00:00
|
|
|
[[ -e /usr/bin/ninja ]] && PKGMK_FMT_OPTIONS=' -GNinja'
|
|
|
|
cmake -S$name-$version -Bbuild $PKGMK_FMT_OPTIONS \
|
2020-07-08 11:29:02 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
2020-05-10 18:23:52 +00:00
|
|
|
cmake --build build
|
2020-07-08 12:41:38 +00:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2019-09-01 10:20:21 +00:00
|
|
|
}
|