summaryrefslogtreecommitdiff
path: root/community/gimp-plugin-wavelet-denoise/PKGBUILD
blob: 9e17c8bfe70f8df05aa267804bf331dc92e7769f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: PKGBUILD 64853 2012-02-18 18:05:29Z stativ $
# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=gimp-plugin-wavelet-denoise
pkgver=0.3.1
pkgrel=2
pkgdesc="Tool to reduce noise in each channel of an image separately"
arch=('i686' 'x86_64')
url="http://registry.gimp.org/node/4235"
license=('GPL')
depends=('gimp')
source=(http://registry.gimp.org/files/wavelet-denoise-$pkgver.tar.gz \
        po_install.diff libm_buildfix.diff)
md5sums=('a02862026857575cdf81b24477e42f4b'
         '4de9e41a535f200c2502f0dd8458c43e'
         '46940ecd5970bc4b0d4b38de89f8efbf')

build() {
  cd "$srcdir/wavelet-denoise-$pkgver"

  patch -Np1 < ../po_install.diff || true
  patch -Np1 < ../libm_buildfix.diff || true
  make
}

package() {
  cd "$srcdir/wavelet-denoise-$pkgver"

  install -Dvm755 src/wavelet-denoise \
    "$pkgdir"/usr/lib/gimp/2.0/plug-ins/wavelet-denoise
  cd po
  make LOCALEDIR="$pkgdir"/usr/share/locale install
}