From dbf8b354d478b6fdf4492a1cefe6600fb86aef8b Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Tue, 24 Mar 2020 23:50:21 +0000 Subject: [PATCH] community/gmic to 2.8.4-2 --- community/gmic/PKGBUILD | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/community/gmic/PKGBUILD b/community/gmic/PKGBUILD index d1672c805..08faddb71 100644 --- a/community/gmic/PKGBUILD +++ b/community/gmic/PKGBUILD @@ -13,7 +13,7 @@ highmem=1 pkgbase=gmic pkgname=(gmic zart gimp-plugin-gmic krita-plugin-gmic) pkgver=2.8.4 -pkgrel=1 +pkgrel=2 arch=(x86_64) url="https://gmic.eu/" license=(custom:CeCILL) @@ -30,6 +30,8 @@ prepare() { mv zart gmic-$pkgver sed -e 's|/etc/bash_completion.d|/usr/share/bash-completion/completions|g' -i gmic-$pkgver/src/Makefile +# Fix segfault on zart due to optimization https://github.com/c-koi/zart/issues/14 + sed -e 's|-Ofast||g' -e 's|-flto||g' -i gmic-$pkgver/src/Makefile -i gmic-$pkgver/gmic-qt/gmic_qt.pro # fix overlinking sed -e 's/pkg-config opencv --libs ||//' -e 's/-lopencv_highgui/-lopencv_videoio/' \ -e 's/pkg-config opencv/pkg-config opencv4/' -i gmic-$pkgver/src/Makefile @@ -44,6 +46,9 @@ prepare() { } build() { + #unset CFLAGS + CFLAGS=`echo $CFLAGS | sed -e 's/-O2//'` && CXXFLAGS="$CFLAGS" + cd gmic-$pkgver make -C src cli lib libc WGET=/bin/true LIBS=${LDFLAGS} -j1