community/gmic to 2.0.0-1

This commit is contained in:
Kevin Mihelich 2017-05-30 12:53:45 +00:00
parent 7ea2a1e7ae
commit 1979c55f0a

View file

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