summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 34493e32898310f46775521c357484b1f9c42404 (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
# Maintainer: twa022 <twa022 at gmail dot com>

_pkgname=gimp
pkgname=${_pkgname}-devel
pkgver=3.0.0rc2
pkgrel=1
pkgdesc="GNU Image Manipulation Program (Development version)"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="https://www.gimp.org/"
license=('GPL-3.0-or-later')
depends=('appstream-glib' 'babl>=0.1.110' 'cairo' 'desktop-file-utils' 'enchant'
         'gegl>=0.4.52' 'graphviz' 'gtk3' 'icu' 'lcms2' 'libexif' 'libgexiv2'
         'libgudev' 'librsvg' 'libwmf' 'libxmu' 'mypaint-brushes1' 'openexr'
         'openjpeg2' 'poppler-data' 'poppler-glib' 'python-gobject')
makedepends=('aalib' 'alsa-lib' 'appstream' 'cfitsio' 'curl' 'ghostscript'
             'gi-docgen' 'gjs' 'glib2-devel' 'glib-networking' 'gobject-introspection'
             'highway' 'intltool' 'iso-codes' 'libheif' 'libilbm' 'libjxl'
             'libmng' 'libwebp' 'libxpm' 'libxslt' 'luajit' 'meson' 'qoi-headers'
             'vala' 'zlib')
             # 'xorg-server-xvfb' # needed for -Dheadless-tests=enabled
             # 'yelp-tools' # needed for -Dg-ir-doc=true
optdepends=('aalib: ASCII art support'
            'alsa-lib: for MIDI event controller module'
            'cfitsio: FITS support'
            'curl: for URI support'
            'gjs: JavaScript scripting support'
            'ghostscript: for postscript support'
            'iso-codes: Language support'
            'libheif: HEIF support'
            'libilbm: ILBM support'
            'libjxl: JPEG XL support'
            'libmng: MNG support'
            'libwebp: WebP support'
            'libxpm: XPM support'
            'lua51-lgi: LUA scripting support'
            'luajit: LUA scripting support'
            'qoi-headers: QOI image support'
            'zlib: Compression routines')
# 'gutenprint: for sophisticated printing only as gimp has built-in cups print support' # GIMP 2.0 only
conflicts=("${_pkgname}")
provides=("${_pkgname}=${pkgver}")
source=("https://download.gimp.org/pub/gimp/v${pkgver%.*}/${_pkgname}-${pkgver/rc/-RC}.tar.xz"
        'linux.gpl')
sha256sums=('f4d2f96df180ce5543f8b2b35707b9bf11459f00f726ca73da2f406d686d9db7'
            '1003bbf5fc292d0d63be44562f46506f7b2ca5729770da9d38d3bb2e8a2f36b3')

build() {
  local meson_options=(
    # -Dg-ir-doc=false # disabled by default, depends on yelp-tools -- was causing build errors on 3.0 RC1
    -Dheadless-tests=disabled # enabled by default, depends on xorg-server-xvfb
    -Dlua=true # disabled by default for release (flagged as experimental)
  )

  arch-meson "${_pkgname}-${pkgver/rc/-RC}" build "${meson_options[@]}"
  meson compile -C build
}

package() {
  meson install -C build --destdir "${pkgdir}"

  install -Dm 644 "${srcdir}"/linux.gpl "${pkgdir}/usr/share/gimp/${pkgver%.*}/palettes/Linux.gpl"
}