summaryrefslogtreecommitdiff
path: root/pcr/gegl-git/PKGBUILD
blob: 28ce8ce84e450c349c786404ef96216bb705b39f (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Maintainer: Márcio Silva <coadde@parabola.nu>
# Maintainer (Arch): Daniel Isenmann <daniel@archlinux.org>

_pkgname=gegl
pkgname=gegl-git
pkgver=r6918.2bfc117
pkgrel=1
pkgdesc="Graph based image processing framework"
arch=('i686' 'x86_64' 'armv7h')
url="http://www.gegl.org/"
license=('GPL3' 'LGPL3')
depends=('babl' 'libspiro' 'json-glib')
makedepends=('intltool' 'ruby' 'lua' 'libraw' 'openexr' 'mesa' 'glu' 'ffmpeg' 'librsvg'
             'jasper' 'exiv2' 'vala' 'python2' 'suitesparse'
             'gobject-introspection' 'git')
optdepends=('libraw: raw plugin'
            'openexr: openexr plugin'
            'ffmpeg: ffmpeg plugin'
            'suitesparse: matting-levin plugin'
            'librsvg: svg plugin'
            'jasper: jasper plugin'
            'lua: lua plugin')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=(${_pkgname}-${pkgver}::git+git://git.gnome.org/${_pkgname}.git)
sha256sums=('SKIP')

# libtiff lensfun
#  asciidoc:        no  (asciidoc not found)
#  enscript:        no  (enscript not found)
#  mrg:             no  (mrg not found)
#  graphviz:        no  (graphviz not found)
#  gexiv2:          no  (gexiv2 not found)

pkgver() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  mkdir path
  ln -s /usr/bin/python2 path/python

  cd ${_pkgname}-${pkgver}
  NOCONFIGURE=1 ./autogen.sh
}

build() {
  export PATH="$srcdir/path:$PATH" PYTHON=/usr/bin/python2
  cd ${_pkgname}-${pkgver}
  ./configure  --prefix=/usr  --with-sdl --with-librsvg \
    --with-libavformat --with-jasper --disable-docs \
    --enable-workshop

  # https://bugzilla.gnome.org/show_bug.cgi?id=655517
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

  make
}

check() {
  export PATH="$srcdir/path:$PATH" PYTHON=/usr/bin/python2
  cd ${_pkgname}-${pkgver}
  make -k check || :
}

package() {
  export PATH="$srcdir/path:$PATH" PYTHON=/usr/bin/python2
  cd ${_pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}