# Template file for 'fmt'
pkgname=fmt
version=12.1.0
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON -DFMT_DOC=OFF -DFMT_TEST=OFF"
short_desc="Modern formatting library"
maintainer="skmpz <dem.procopiou@gmail.com>"
license="MIT WITH fmt-exception"
homepage="https://github.com/fmtlib/fmt"
changelog="https://raw.githubusercontent.com/fmtlib/fmt/refs/heads/master/ChangeLog.md"
distfiles="https://github.com/fmtlib/fmt/archive/${version}.tar.gz"
checksum=ea7de4299689e12b6dddd392f9896f08fb0777ac7168897a244a6d6085043fea

post_install() {
	vlicense LICENSE
}

fmt-devel_package() {
	depends="fmt-${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}
