PKGBUILDs/community/gmic/PKGBUILD

65 lines
2.1 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
pkgbase=gmic
pkgname=("gmic" "gimp-plugin-gmic" "zart")
2015-12-08 13:34:57 +00:00
pkgver=1.6.8
2015-12-10 04:25:59 +00:00
pkgrel=2
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")
makedepends=('gimp' 'qt4' 'fftw' 'openexr' 'opencv' 'mesa' 'gtk2')
2015-06-01 14:24:45 +00:00
source=("http://gmic.eu/files/source/gmic_$pkgver.tar.gz")
2015-12-08 13:34:57 +00:00
md5sums=('feaebd099235ab760899f2597f5e5508')
2013-09-13 14:40:59 +00:00
prepare() {
cd "${srcdir}/gmic-${pkgver}"
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
2013-09-13 14:40:59 +00:00
sed -i "s|-mtune=generic|${CFLAGS}|" src/Makefile
}
build() {
cd "${srcdir}/gmic-${pkgver}"
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")
cd "${srcdir}/gmic-${pkgver}"
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")
cd "${srcdir}/gmic-${pkgver}"
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")
cd "${srcdir}/gmic-${pkgver}"
install -Dm755 src/gmic_gimp "${pkgdir}/usr/lib/gimp/2.0/plug-ins/gmic_gimp"
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}