diff options
Diffstat (limited to 'community/gmic/PKGBUILD')
-rw-r--r-- | community/gmic/PKGBUILD | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/community/gmic/PKGBUILD b/community/gmic/PKGBUILD index 049f0fe11..f44f140e8 100644 --- a/community/gmic/PKGBUILD +++ b/community/gmic/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 63596 2012-02-05 11:58:54Z ibiru $ +# $Id: PKGBUILD 69172 2012-04-09 23:02:59Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com> # Contributor: farid <farid at archlinuc-br.org> @@ -6,8 +6,8 @@ pkgbase=gmic pkgname=('gmic' 'gimp-plugin-gmic') -pkgver=1.5.0.8 -pkgrel=2 +pkgver=1.5.1.1 +pkgrel=1 pkgdesc="image procession framework" arch=('i686' 'x86_64') license=('custom:CeCILL') @@ -16,20 +16,13 @@ makedepends=('gimp' 'fftw' 'lapack' 'opencv' 'graphicsmagick' 'openexr' 'imagema options=('docs' '!emptydirs') source=("http://downloads.sourceforge.net/sourceforge/gmic/gmic_$pkgver.tar.gz" opencv-buildfix.patch) -md5sums=('530e733b81e3c1cca7f17bfad4a56821' - 'f135182ced743c296e08ddd560fa6be9') +md5sums=('858a1d8d06d19a1903feb5314a58c805' + '62515a0e477e71e11ee24f66b5799937') build() { cd "$srcdir/gmic-$pkgver" - CFLAGS+=" -Dcimg_use_lapack" - LDFLAGS="-llapack" - sed -i "s#-lhighgui#-lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann#" configure - sed -i "s#-lcv#-lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann#" configure - ./configure --prefix=/usr - sed -i 's|OPENCV_CFLAGS = .*|OPENCV_CFLAGS = -Dcimg_use_opencv -I$(USR)/include/opencv `pkg-config --cflags opencv`|' src/Makefile - sed -i 's|OPENCV_LDFLAGS = .*|OPENCV_LDFLAGS = `pkg-config --libs opencv`|' src/Makefile - sed -i 's|cp -f gmic_gimp.*||' src/Makefile - sed -i 's|ln -s $(DESTDIR)$(USR)|ln -s $(USR)|' src/Makefile +# CFLAGS+=" -Dcimg_use_lapack" +# LDFLAGS="-llapack" patch -p1 <$srcdir/opencv-buildfix.patch make -C src all } @@ -41,6 +34,9 @@ package_gmic() { cd "$srcdir/gmic-$pkgver" make -C src install DESTDIR="$pkgdir" USR=/usr install -Dm644 COPYING "$pkgdir/usr/share/licenses/gmic/LICENSE" + mkdir -p $pkgdir/usr/share/bash-completion/completions/ + mv $pkgdir/etc/bash_completion.d/gmic $pkgdir/usr/share/bash-completion/completions/gmic + rm -rf $pkgdir/etc/bash_completion.d } package_gimp-plugin-gmic() { |