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

Levente Polyak anthraxx at archlinux.org
Sat Apr 4 13:05:37 UTC 2020


    Date: Saturday, April 4, 2020 @ 13:05:35
  Author: anthraxx
Revision: 611579

upgpkg: fish 3.1.0-3: respect CPPFLAGS because cmake is cmake

- use VERBOSE=1 just to see flags being used, guess can't hurt

Modified:
  fish/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-04 13:05:16 UTC (rev 611578)
+++ PKGBUILD	2020-04-04 13:05:35 UTC (rev 611579)
@@ -7,7 +7,7 @@
 
 pkgname=fish
 pkgver=3.1.0
-pkgrel=2
+pkgrel=3
 pkgdesc='Smart and user friendly shell intended mostly for interactive use'
 url='https://fishshell.com/'
 arch=('x86_64')
@@ -26,14 +26,16 @@
             'SKIP')
 
 build() {
-  mkdir ${pkgname}-${pkgver}/build
-  cd ${pkgname}-${pkgver}/build
-  cmake .. \
+  cd ${pkgname}-${pkgver}
+  export CXXFLAGS+=" ${CPPFLAGS}"
+  cmake \
+    -B build \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_INSTALL_SYSCONFDIR=/etc \
-    -DCMAKE_BUILD_TYPE=Release \
-    -DBUILD_DOCS=True
-  make
+    -DCMAKE_BUILD_TYPE=None \
+    -DBUILD_DOCS=True \
+    -Wno-dev
+  make -C build VERBOSE=1
 }
 
 package() {



More information about the arch-commits mailing list