mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 02:54:23 +02:00
40 lines
1.2 KiB
Text
40 lines
1.2 KiB
Text
# Maintainer: Luca Weiss <luca@lucaweiss.eu>
|
|
pkgname=date
|
|
pkgver=3.0.4
|
|
pkgrel=0
|
|
pkgdesc="Date and time library based on the C++11/14/17 <chrono> header"
|
|
arch="all"
|
|
url="https://howardhinnant.github.io/date/date.html"
|
|
license="MIT"
|
|
makedepends="cmake samurai"
|
|
checkdepends="bash"
|
|
source="https://github.com/HowardHinnant/date/archive/v$pkgver/date-v$pkgver.tar.gz
|
|
538-output-date-pc-for-pkg-config.patch
|
|
"
|
|
subpackages="$pkgname-dev"
|
|
options="!check" # Several tests fail - see also https://github.com/HowardHinnant/date/issues/334
|
|
|
|
build() {
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DBUILD_SHARED_LIBS=true \
|
|
-DBUILD_TZ_LIB=true \
|
|
-DUSE_SYSTEM_TZ_DB=true \
|
|
-DENABLE_DATE_TESTING=true \
|
|
-Wno-dev
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
cmake --build build --target testit
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --build build --target install
|
|
}
|
|
sha512sums="
|
|
9bffca5c7cfd1769f66bef330fe4ef0ad2512a8afd229ddb4043a4f166741e697c7a5fbdddf29f7157b3fc2c2c2a80fa7cff45078f1d8ab248d3b07e14518fcf date-v3.0.4.tar.gz
|
|
c92e9bc76554859687b0d1a7b0e09ab1044cc46a208e57ea112fcc87d5ed1e8fd21b195079dacbc17adf7830dd4e0b10deb67859263c26822f57225316c27e10 538-output-date-pc-for-pkg-config.patch
|
|
"
|