* update microsoft-gsl to 4.1.0-1
This commit is contained in:
parent
ff1bbf3b43
commit
9bafd39adc
14
microsoft-gsl/.SRCINFO
Normal file
14
microsoft-gsl/.SRCINFO
Normal file
@ -0,0 +1,14 @@
|
||||
pkgbase = microsoft-gsl
|
||||
pkgdesc = C++ Core Guidelines Support Library
|
||||
pkgver = 4.1.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/Microsoft/GSL
|
||||
arch = any
|
||||
license = MIT
|
||||
makedepends = cmake
|
||||
makedepends = git
|
||||
makedepends = ninja
|
||||
source = microsoft-gsl-4.1.0.tar.gz::https://github.com/Microsoft/GSL/archive/v4.1.0.tar.gz
|
||||
sha256sums = 0a227fc9c8e0bf25115f401b9a46c2a68cd28f299d24ab195284eb3f1d7794bd
|
||||
|
||||
pkgname = microsoft-gsl
|
4
microsoft-gsl/.nvchecker.toml
Normal file
4
microsoft-gsl/.nvchecker.toml
Normal file
@ -0,0 +1,4 @@
|
||||
[microsoft-gsl]
|
||||
source = "git"
|
||||
git = "https://github.com/Microsoft/GSL.git"
|
||||
prefix = "v"
|
39
microsoft-gsl/PKGBUILD
Normal file
39
microsoft-gsl/PKGBUILD
Normal file
@ -0,0 +1,39 @@
|
||||
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
||||
# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
|
||||
# Contributor: Aleksandar Trifunović <akstrfn at gmail dot com>
|
||||
|
||||
_pkgname=GSL
|
||||
pkgname=microsoft-gsl
|
||||
pkgver=4.1.0
|
||||
pkgrel=1
|
||||
pkgdesc="C++ Core Guidelines Support Library"
|
||||
arch=('any')
|
||||
url="https://github.com/Microsoft/GSL"
|
||||
license=('MIT')
|
||||
makedepends=('cmake' 'git' 'ninja')
|
||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/Microsoft/GSL/archive/v${pkgver}.tar.gz")
|
||||
sha256sums=('0a227fc9c8e0bf25115f401b9a46c2a68cd28f299d24ab195284eb3f1d7794bd')
|
||||
|
||||
build() {
|
||||
cd "$_pkgname-$pkgver"
|
||||
cmake \
|
||||
-Bbuild \
|
||||
-GNinja \
|
||||
-DGSL_TEST=ON \
|
||||
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
|
||||
-DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
ninja -C build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$_pkgname-$pkgver"
|
||||
ninja -C build test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_pkgname-$pkgver"
|
||||
DESTDIR="$pkgdir/" ninja -C build install
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user