From 6593b9f13793caaab36354bba315499ddba19a2f Mon Sep 17 00:00:00 2001 From: lz-coder Date: Fri, 20 Jan 2023 02:34:40 -0300 Subject: [PATCH] New package: chrono-date-3.0.1 --- srcpkgs/chrono-date/template | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 srcpkgs/chrono-date/template diff --git a/srcpkgs/chrono-date/template b/srcpkgs/chrono-date/template new file mode 100644 index 000000000000..72b720937996 --- /dev/null +++ b/srcpkgs/chrono-date/template @@ -0,0 +1,29 @@ +# Template file for 'chrono-date' +pkgname=chrono-date +version=3.0.1 +revision=1 +hostmakedepends="cmake" +short_desc="Date and time library based on the C++11/14/17 header" +maintainer="lz-coder " +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 + +do_build() { + cmake -B build -S "." \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_SHARED_LIBS=true \ + -DBUILD_TZ_LIB=true \ + -DUSE_SYSTEM_TZ_DB=true \ + -DENABLE_DATE_TESTING=true \ + -Wno-dev +} + +do_install() { + make -C build DESTDIR="${DESTDIR}/" install + vlicense LICENSE.txt + vinstall README.md 644 "/usr/share/dock/${pkgname}" +}