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

Antonio Rojas arojas at archlinux.org
Tue May 18 08:24:22 UTC 2021


    Date: Tuesday, May 18, 2021 @ 08:24:22
  Author: arojas
Revision: 415663

Add missing include for GCC 11

Modified:
  vc/trunk/PKGBUILD

----------+
 PKGBUILD |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-18 08:11:45 UTC (rev 415662)
+++ PKGBUILD	2021-05-18 08:24:22 UTC (rev 415663)
@@ -4,28 +4,28 @@
 
 pkgname=vc
 pkgver=1.4.1
-pkgrel=2
-pkgdesc="A library to ease explicit vectorization of C++ code"
+pkgrel=3
+pkgdesc='A library to ease explicit vectorization of C++ code'
 url='https://github.com/VcDevel/Vc'
 arch=(x86_64)
 license=(LGPL3)
 makedepends=(cmake)
-source=("https://github.com/VcDevel/Vc/releases/download/$pkgver/Vc-$pkgver.tar.gz")
-sha256sums=('68e609a735326dc3625e98bd85258e1329fb2a26ce17f32c432723b750a4119f')
+source=(https://github.com/VcDevel/Vc/releases/download/$pkgver/Vc-$pkgver.tar.gz
+        https://github.com/VcDevel/Vc/commit/f41958c3.patch)
+sha256sums=('68e609a735326dc3625e98bd85258e1329fb2a26ce17f32c432723b750a4119f'
+            'cd916fbf9de5650ef4e9889c0022226623d411b0dd8d45c718bc8051c5ff637c')
 
 prepare() {
-  mkdir -p build
+  patch -d Vc-$pkgver -p1 < f41958c3.patch # Add missing include for GCC 11
 }
 
 build() {
-  cd build
-  cmake ../Vc-$pkgver \
+  cmake -B build -S Vc-$pkgver \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DTARGET_ARCHITECTURE=generic
-  make
+  cmake --build build
 }
 
 package() {
-  cd build
-  make DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" cmake --install build
 }



More information about the arch-commits mailing list