aports/community/date/APKBUILD
Luca Weiss 2caff67992 */*: update my email address
And add an entry to .mailmap to map the old to the new address.
2024-06-21 12:53:25 +00:00

40 lines
1.2 KiB
Text

# Maintainer: Luca Weiss <luca@lucaweiss.eu>
pkgname=date
pkgver=3.0.1
pkgrel=3
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="
6bdc7cba821d66e17a559250cc0ce0095808e9db81cec9e16eaa4c31abdfa705299c67b72016d9b06b302bc306d063e83a374eb00728071b83a5ad650d59034f date-v3.0.1.tar.gz
c92e9bc76554859687b0d1a7b0e09ab1044cc46a208e57ea112fcc87d5ed1e8fd21b195079dacbc17adf7830dd4e0b10deb67859263c26822f57225316c27e10 538-output-date-pc-for-pkg-config.patch
"