blob: 7065b5273f46ae6a0c643641d5f88a52a1b9d527 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>
pkgname=mingw-w64-fmt
pkgver=7.1.3
pkgrel=1
pkgdesc="{fmt} is an open-source formatting library for C++. It can be used as a safe and fast alternative to (s)printf and iostreams. (mingw-w64)"
url="https://fmt.dev/"
license=("MIT")
depends=("mingw-w64-crt")
makedepends=("mingw-w64-cmake")
arch=("any")
options=(!strip !buildflags staticlibs)
optdepends=()
sha256sums=(
"5cae7072042b3043e12d53d50ef404bbb76949dad1de368d7f993a15c8c05ecc"
)
source=(
"https://github.com/fmtlib/fmt/archive/${pkgver}.tar.gz"
)
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
_flags=( -Wno-dev -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE="-O2 -DNDEBUG" -DFMT_DOC=OFF -DFMT_TEST=OFF )
for _arch in ${_architectures}; do
${_arch}-cmake -S "fmt-${pkgver}" -B "build-${_arch}" "${_flags[@]}"
make -C "build-${_arch}"
done
}
package() {
for _arch in ${_architectures}; do
make DESTDIR="${pkgdir}" -C "build-${_arch}" install
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
done
}
|