[arch-commits] Commit in microsoft-gsl/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Wed Apr 22 14:19:03 UTC 2020


    Date: Wednesday, April 22, 2020 @ 14:19:01
  Author: svenstaro
Revision: 617652

upgpkg: microsoft-gsl 3.0.0-1

Modified:
  microsoft-gsl/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-22 14:15:11 UTC (rev 617651)
+++ PKGBUILD	2020-04-22 14:19:01 UTC (rev 617652)
@@ -3,15 +3,15 @@
 
 _pkgname=GSL
 pkgname=microsoft-gsl
-pkgver=2.1.0
+pkgver=3.0.0
 pkgrel=1
 pkgdesc="C++ Core Guidelines Support Library"
 arch=('any')
 url="https://github.com/Microsoft/GSL"
 license=('MIT')
-makedepends=('cmake')
-source=("https://github.com/Microsoft/GSL/archive/v${pkgver}.tar.gz")
-sha256sums=('ef73814657b073e1be86c8f7353718771bf4149b482b6cb54f99e79b23ff899d')
+makedepends=('cmake' 'git')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Microsoft/GSL/archive/v${pkgver}.tar.gz")
+sha256sums=('767b6246eecd0b2a915e2b5774ba6d4796579a5e15dc562d93ec80f1f2c9c889')
 
 prepare() {
     mkdir "$_pkgname-$pkgver"/build
@@ -20,19 +20,19 @@
 build() {
     cd "$_pkgname-$pkgver"/build
     cmake .. \
-        -DGSL_TEST=OFF \
+        -DGSL_TEST=ON \
         -DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
         -DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \
         -DCMAKE_INSTALL_PREFIX=/usr \
         -DCMAKE_BUILD_TYPE=Release
-# TODO Re-enable tests in next release
 
     make
 }
 
-# check() {
-# TODO Re-enable tests in next release
-# }
+check() {
+    cd "$_pkgname-$pkgver"/build
+    make test
+}
 
 package() {
     cd "$_pkgname-$pkgver"/build



More information about the arch-commits mailing list