From 1979c55f0a797d7d39c34d3590baedeeef3dc790 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Tue, 30 May 2017 12:53:45 +0000 Subject: [PATCH] community/gmic to 2.0.0-1 --- community/gmic/PKGBUILD | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/community/gmic/PKGBUILD b/community/gmic/PKGBUILD index 55e7d4217..34fd5f600 100644 --- a/community/gmic/PKGBUILD +++ b/community/gmic/PKGBUILD @@ -11,17 +11,21 @@ highmem=1 pkgbase=gmic pkgname=("gmic" "gimp-plugin-gmic" "zart") -pkgver=1.7.9 -_commit=7c19f43888c714d18a13616ff805d246289f4786 -pkgrel=3 +pkgver=2.0.0 +_commit=440f068f665597aa10d8e01cc8b73cafdf0e4479 +pkgrel=1 arch=("i686" "x86_64") url="http://gmic.eu/" license=("custom:CeCILL") makedepends=('gimp' 'qt4' 'fftw' 'openexr' 'opencv' 'mesa' 'gtk2' 'git') source=("https://gmic.eu/files/source/gmic_$pkgver.tar.gz" - "git://github.com/dtschump/gmic-community.git#commit=${_commit}") -sha256sums=('152f100eb139a5f6e5b3d1e43aaed34f2b3786f72f52724ebde5e5ccea2c7133' - 'SKIP') + "git://github.com/dtschump/gmic-community.git#commit=${_commit}" + "gmic_stdlib.h-$pkgver::http://gmic.eu/gmic_stdlib.h" + "CImg.h-$pkgver::https://github.com/dtschump/CImg/blob/master/CImg.h?raw=true") +sha256sums=('27c57f0ca630895a0dab5c0eff854f3133a29743267c4aa196dc2d1936463ca4' + 'SKIP' + '5557eba6da03e8c1df2bb2f36644577245540b247e71b130b6aa03c45c87b8d9' + '27d35b0c402897e270f74cbca7b90541cfe860b308b868f96b06fa372fdbd6be') prepare() { mv "${srcdir}/gmic-${pkgver}" "${srcdir}/gmic" @@ -31,19 +35,22 @@ prepare() { src/Makefile ln -sf ../gmic-community/zart zart sed -i "s|-mtune=generic|${CFLAGS}|" src/Makefile + + mkdir -p ../CImg + cp -L ../gmic_stdlib.h-$pkgver src/gmic_stdlib.h + cp -L ../CImg.h-$pkgver ../CImg/CImg.h } build() { cd "${srcdir}/gmic" (cd zart && qmake-qt4 -o Makefile zart.pro) - make -C src all - make -C zart all + make -C src all WGET=/bin/true + make -C zart all WGET=/bin/true } package_gmic() { pkgdesc="GREYC's Magic Image Converter: image processing framework" depends=("opencv" "fftw" "libtiff" "libjpeg" "libpng" "openexr" "libx11") - replaces=("greycstoration") cd "${srcdir}/gmic" make -C src install DESTDIR="$pkgdir" USR="/usr" @@ -63,9 +70,8 @@ package_zart() { package_gimp-plugin-gmic() { pkgdesc="Gimp plugin for the G'MIC image processing framework" depends=("opencv" "gimp" "fftw") - replaces=("gimp-plugin-greycstoration" "gimp-plugin-gmic4gimp") cd "${srcdir}/gmic" - install -Dm755 src/gmic_gimp "${pkgdir}/usr/lib/gimp/2.0/plug-ins/gmic_gimp" + install -Dm755 src/gmic_gimp_gtk "${pkgdir}/usr/lib/gimp/2.0/plug-ins/gmic_gimp" install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }