2017-12-22 12:41:15 +00:00
|
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
|
|
# Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
|
2013-09-13 14:40:59 +00:00
|
|
|
# Contributor: farid <farid at archlinuc-br.org>
|
|
|
|
# Contributor: Archie <Mymaud@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - remove -mtune=generic from makefile, replace with our CFLAGS
|
|
|
|
|
2016-09-05 17:12:01 +00:00
|
|
|
highmem=1
|
|
|
|
|
2013-09-13 14:40:59 +00:00
|
|
|
pkgbase=gmic
|
2017-12-22 12:41:15 +00:00
|
|
|
pkgname=(gmic zart gimp-plugin-gmic krita-plugin-gmic)
|
2018-03-12 18:05:58 +00:00
|
|
|
pkgver=2.2.1
|
2017-11-13 13:38:40 +00:00
|
|
|
_commit=26c271d8a721447f24f118c9d0236a02118d0009
|
2018-03-10 13:16:25 +00:00
|
|
|
pkgrel=2
|
2017-12-22 12:41:15 +00:00
|
|
|
arch=(x86_64)
|
2015-06-01 14:24:45 +00:00
|
|
|
url="http://gmic.eu/"
|
2017-12-22 12:41:15 +00:00
|
|
|
license=(custom:CeCILL)
|
2018-03-10 13:16:25 +00:00
|
|
|
makedepends=(gimp qt5-base fftw openexr opencv git hdf5 gtkglext)
|
2016-11-21 13:24:08 +00:00
|
|
|
source=("https://gmic.eu/files/source/gmic_$pkgver.tar.gz"
|
2017-12-22 12:41:15 +00:00
|
|
|
git://github.com/dtschump/gmic-community.git#commit=$_commit
|
2018-03-12 18:05:58 +00:00
|
|
|
gmic-qt-v.$pkgver.tar.gz::"https://github.com/c-koi/gmic-qt/archive/v.$pkgver.tar.gz")
|
|
|
|
sha256sums=('3c05754568127d20d0ab3b50e49e00d3c89b26078a15725d0bfb8b1ed50f4c45'
|
2017-05-30 12:53:45 +00:00
|
|
|
'SKIP'
|
2018-03-12 18:05:58 +00:00
|
|
|
'ab2db76d92cd476e9e45fd226f9ebca86819a3d17d740ad5172e094e072f26c0')
|
2013-09-13 14:40:59 +00:00
|
|
|
|
|
|
|
prepare() {
|
2017-12-22 12:41:15 +00:00
|
|
|
mv gmic-$pkgver gmic
|
|
|
|
mv gmic-community/zart zart
|
2018-03-12 18:05:58 +00:00
|
|
|
mv gmic-qt-v.$pkgver gmic-qt
|
2017-07-06 18:31:40 +00:00
|
|
|
|
2017-12-22 12:41:15 +00:00
|
|
|
sed -e 's|/etc/bash_completion.d|/usr/share/bash-completion/completions|g' -i gmic/src/Makefile
|
|
|
|
sed -e 's|-Ofast|-O2 -fno-fast-math|g' -i gmic-qt/gmic_qt.pro
|
2017-07-06 18:31:40 +00:00
|
|
|
|
2017-12-22 12:55:34 +00:00
|
|
|
sed -i "s|-mtune=generic|${CFLAGS}|" gmic/src/Makefile
|
2013-09-13 14:40:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2017-12-22 12:41:15 +00:00
|
|
|
cd gmic
|
2017-09-05 13:50:24 +00:00
|
|
|
make -C src all WGET=/bin/true -j1
|
2013-09-13 14:40:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_gmic() {
|
|
|
|
pkgdesc="GREYC's Magic Image Converter: image processing framework"
|
2017-12-22 12:41:15 +00:00
|
|
|
depends=(opencv fftw curl)
|
|
|
|
optdepends=('qt5-base: for the Qt UI')
|
2013-09-13 14:40:59 +00:00
|
|
|
|
2017-12-22 12:41:15 +00:00
|
|
|
cd gmic/src
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -Dm644 ../COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
|
|
rm -rf "$pkgdir"/usr/{bin/zart,lib/gimp,share/zart,bin/gmic_krita_qt}
|
2013-09-13 14:40:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_zart() {
|
|
|
|
pkgdesc="A GUI for G'MIC real-time manipulations on the output of a webcam"
|
2017-12-22 12:41:15 +00:00
|
|
|
depends=(opencv fftw qt5-base)
|
2013-09-13 14:40:59 +00:00
|
|
|
|
2017-12-22 12:41:15 +00:00
|
|
|
install -Dm755 zart/zart -t "$pkgdir"/usr/bin
|
|
|
|
install -Dm644 zart/Licence_CeCILL_V2-en.html -t "$pkgdir"/usr/share/licenses/$pkgname
|
2013-09-13 14:40:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_gimp-plugin-gmic() {
|
|
|
|
pkgdesc="Gimp plugin for the G'MIC image processing framework"
|
2017-12-22 12:41:15 +00:00
|
|
|
depends=(gimp fftw qt5-base curl)
|
2013-09-13 14:40:59 +00:00
|
|
|
|
2017-12-22 12:41:15 +00:00
|
|
|
install -Dm755 gmic-qt/gmic_gimp_qt "$pkgdir"/usr/lib/gimp/2.0/plug-ins/gmic_gimp
|
|
|
|
install -Dm644 gmic-qt/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
2013-09-13 14:40:59 +00:00
|
|
|
}
|
2017-10-11 14:34:51 +00:00
|
|
|
|
|
|
|
package_krita-plugin-gmic() {
|
|
|
|
pkgdesc="Krita plugin for the G'MIC image processing framework"
|
2017-12-22 12:41:15 +00:00
|
|
|
depends=(krita)
|
2017-10-11 14:34:51 +00:00
|
|
|
|
2017-12-22 12:41:15 +00:00
|
|
|
cd gmic-qt
|
|
|
|
install -Dm755 gmic_krita_qt -t "$pkgdir"/usr/bin/
|
2017-10-11 14:34:51 +00:00
|
|
|
}
|