mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-26 02:02:33 +01:00
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
# Contributor: Zeyi Shen <qazxdrcssc2006@163.com>
|
|
# Maintainer: Zeyi Shen <qazxdrcssc2006@163.com>
|
|
pkgname=msgsl
|
|
pkgver=3.1.0
|
|
pkgrel=0
|
|
pkgdesc="C++ Guideline Support Library implementation by Microsoft"
|
|
url="https://github.com/microsoft/GSL"
|
|
# These functions don't work on the disabled arches since they cast variables
|
|
# from 'const gsl::byte*' to 'const int*' which increases required alignment of
|
|
# target type and produce a compile error.
|
|
# See: https://github.com/microsoft/GSL/blob/v3.1.0/include/gsl/multi_span#L1670
|
|
arch="all !armhf !armv7 !mips64 !riscv64"
|
|
license="MIT"
|
|
makedepends="cmake gtest"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/microsoft/GSL/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/GSL-$pkgver"
|
|
|
|
build() {
|
|
cmake -B build \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DBUILD_SHARED_LIBS=ON
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
ctest
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
2916df9ee165fc803ffae0a56518f2ba92870e279984913ff591559e1459943c3ffbc1f5a0d819ad8233f0c9034012de3616aa4e10557d87c7285d8425d10696 msgsl-3.1.0.tar.gz
|
|
"
|