blob: 2f4190453d4452c520ec7f66349b3d660f6e0bba (
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
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Mihai Bişog <mihai.bisog@gmail.com>
pkgname=fmt
pkgver=5.3.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:
|