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

Evangelos Foutras foutrelis at archlinux.org
Tue Dec 8 06:56:27 UTC 2015


    Date: Tuesday, December 8, 2015 @ 07:56:27
  Author: foutrelis
Revision: 150177

Build in C++11 mode

Modified:
  ccgo/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-12-08 06:15:52 UTC (rev 150176)
+++ PKGBUILD	2015-12-08 06:56:27 UTC (rev 150177)
@@ -13,9 +13,16 @@
 source=("http://ccdw.org/~cjj/prog/$pkgname/src/$pkgname-$pkgver.tar.gz")
 sha256sums=('1975a4e9b6661f6613dd3a00b3ee7e176b80244f555a184b258b50ef4352a890')
 
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  find -name '*.hh' -exec sed -i '/sigc++\/object.h/d' {} +
+  find -name '*.cc' -exec sed -i 's/(bind(/(sigc::bind(/' {} +
+}
+
 build() {
   cd "$srcdir/$pkgname-$pkgver"
 
+  CXXFLAGS+=' -std=c++11 -fpermissive'
   ./configure --prefix=/usr
   make
 }



More information about the arch-commits mailing list