community/gmic to 2.8.4-2

This commit is contained in:
Kevin Mihelich 2020-03-24 23:50:21 +00:00
parent 1e80fd40d1
commit dbf8b354d4

View file

@ -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