PKGBUILDs/community/gmic/PKGBUILD

72 lines
2.3 KiB
Bash
Raw Normal View History

2013-09-13 14:40:59 +00:00
# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
# 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
pkgname=("gmic" "gimp-plugin-gmic" "zart")
2016-11-21 13:24:08 +00:00
pkgver=1.7.9
2016-10-31 12:24:42 +00:00
_commit=7c19f43888c714d18a13616ff805d246289f4786
2016-05-08 23:21:52 +00:00
pkgrel=1
2013-09-13 14:40:59 +00:00
arch=("i686" "x86_64")
2015-06-01 14:24:45 +00:00
url="http://gmic.eu/"
2013-09-13 14:40:59 +00:00
license=("custom:CeCILL")
2016-09-05 15:44:56 +00:00
makedepends=('gimp' 'qt4' 'fftw' 'openexr' 'opencv' 'mesa' 'gtk2' 'git')
2016-11-21 13:24:08 +00:00
source=("https://gmic.eu/files/source/gmic_$pkgver.tar.gz"
2016-09-05 15:44:56 +00:00
"git://github.com/dtschump/gmic-community.git#commit=${_commit}")
2016-11-21 13:24:08 +00:00
sha256sums=('93d8eb70780328fa207cef8555c77f7e9e5399ff7d204dfcab145809c51e34e4'
'SKIP')
2013-09-13 14:40:59 +00:00
prepare() {
2016-09-05 15:44:56 +00:00
mv "${srcdir}/gmic-${pkgver}" "${srcdir}/gmic"
cd "${srcdir}/gmic"
2014-03-19 16:31:31 +00:00
sed -i -e 's|qmake zart.pro|qmake-qt4 zart.pro|g' \
-e 's|/etc/bash_completion.d|/usr/share/bash-completion/completions|g' \
src/Makefile
2016-09-05 15:44:56 +00:00
ln -sf ../gmic-community/zart zart
2013-09-13 14:40:59 +00:00
sed -i "s|-mtune=generic|${CFLAGS}|" src/Makefile
}
build() {
2016-09-05 15:44:56 +00:00
cd "${srcdir}/gmic"
2014-03-19 16:33:05 +00:00
(cd zart && qmake-qt4 -o Makefile zart.pro)
2013-09-13 14:40:59 +00:00
make -C src all
2014-03-19 16:33:05 +00:00
make -C zart all
2013-09-13 14:40:59 +00:00
}
package_gmic() {
pkgdesc="GREYC's Magic Image Converter: image processing framework"
2015-04-25 00:43:21 +00:00
depends=("opencv" "fftw" "libtiff" "libjpeg" "libpng" "openexr" "libx11")
2013-09-13 14:40:59 +00:00
replaces=("greycstoration")
2016-09-05 15:44:56 +00:00
cd "${srcdir}/gmic"
2013-09-13 14:40:59 +00:00
make -C src install DESTDIR="$pkgdir" USR="/usr"
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
rm -rf "${pkgdir}/usr/"{bin/zart,lib/gimp,share/zart}
}
package_zart() {
pkgdesc="A GUI for G'MIC real-time manipulations on the output of a webcam"
depends=("opencv" "fftw" "qt4")
2016-09-05 15:44:56 +00:00
cd "${srcdir}/gmic"
2014-03-19 16:33:05 +00:00
install -Dm755 zart/zart "${pkgdir}/usr/bin/zart"
2013-09-13 14:40:59 +00:00
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_gimp-plugin-gmic() {
pkgdesc="Gimp plugin for the G'MIC image processing framework"
2015-04-25 00:43:21 +00:00
depends=("opencv" "gimp" "fftw")
2013-09-13 14:40:59 +00:00
replaces=("gimp-plugin-greycstoration" "gimp-plugin-gmic4gimp")
2016-09-05 15:44:56 +00:00
cd "${srcdir}/gmic"
2013-09-13 14:40:59 +00:00
install -Dm755 src/gmic_gimp "${pkgdir}/usr/lib/gimp/2.0/plug-ins/gmic_gimp"
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}