Commit 0313b82d authored by Chaoting Liu's avatar Chaoting Liu

import as makedepend of kodi

parent 25e18b3b
Pipeline #2855 canceled with stages
in 16 seconds
# 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:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment