void-packages/srcpkgs/chrono-date/template

30 lines
882 B
Bash

# Template file for 'chrono-date'
pkgname=chrono-date
version=3.0.1
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=true -DBUILD_TZ_LIB=true
-DUSE_SYSTEM_TZ_DB=true -DENABLE_DATE_TESTING=false"
short_desc="Date and time library based on the C++11/14/17 <chrono> header"
maintainer="lz-coder <lzcoder@proton.me>"
license="MIT"
homepage="https://howardhinnant.github.io/date/date.html"
changelog="https://github.com/HowardHinnant/date/releases"
distfiles="https://github.com/HowardHinnant/date/archive/v${version}.tar.gz"
checksum=7a390f200f0ccd207e8cff6757e04817c1a0aec3e327b006b7eb451c57ee3538
post_install() {
vlicense LICENSE.txt
}
chrono-date-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}