contrib/fmt/Pkgfile

24 lines
679 B
Plaintext
Raw Normal View History

2019-09-01 12:20:21 +02:00
# Description: An open-source formatting library
2021-02-01 12:00:53 +01:00
# URL: https://fmt.dev/latest/index.html
2019-09-01 12:20:21 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: cmake
name=fmt
2020-11-25 14:43:44 +01:00
version=7.1.3
2021-06-18 14:58:37 +02:00
release=2
2019-09-01 12:20:21 +02:00
source=(https://github.com/fmtlib/$name/archive/$version/$name-$version.tar.gz)
build() {
2020-11-08 12:08:25 +01:00
[[ -e /usr/bin/ninja ]] && PKGMK_FMT+=' -G Ninja'
cmake -S $name-$version -B build $PKGMK_FMT \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
2021-06-18 14:58:37 +02:00
-D BUILD_SHARED_LIBS=ON \
2020-12-07 00:53:17 +01:00
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
2020-11-08 12:08:25 +01:00
-Wno-dev
2020-05-10 20:23:52 +02:00
cmake --build build
2020-07-08 14:41:38 +02:00
DESTDIR=$PKG cmake --install build
2019-09-01 12:20:21 +02:00
}