blob: 880b8f6fad996f77b7a88c177eb670dd0fd7e5a6 (
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Maintainer: su226 <thesu226 at outlook dot com>
# Contributor: twa022 <twa022 at gmail dot com>
_pkgname=gimp
pkgname=${_pkgname}-devel-noconflict
_pkgver=3.0.0-RC2
pkgver=${_pkgver/-RC/rc}
pkgrel=1
pkgdesc="GNU Image Manipulation Program (Development version, doesn't conflict with gimp 2.0)"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="https://www.gimp.org/"
license=('GPL' 'LGPL')
depends=(appstream-glib atk 'babl>=0.1.110' cairo fontconfig freetype2 gdk-pixbuf2 'gegl>=0.4.52' libgexiv2 glib2 glib-networking gtk3 gvfs harfbuzz bzip2 libjpeg xz libmypaint libpng poppler-glib librsvg libtiff lcms2 mypaint-brushes1 pango poppler-data zlib libxmu python-gobject)
makedepends=(cfitsio iso-codes ghostscript aalib libheif libmng libwebp libwmf libxcursor libxpm openexr openjpeg2 libjxl qoi-headers vala meson gobject-introspection alsa-lib gjs appstream glib2-devel libilbm)
# 'gutenprint: for sophisticated printing only as gimp has built-in cups print support' # GIMP 2.0 only
# 'graphviz: "Show Image Graph" in "File > Debug" menu' # Unstable branches only
optdepends=('alsa-lib: for MIDI event controller module'
'cfitsio: FITS format support'
'iso-codes: Language selection'
'ghostscript: PostScript support'
'aalib: ASCII art support'
'libheif: HEIF support'
'libmng: MNG support'
'libwebp: WebP support'
'libwmf: WMF support'
'libxcursor: X11 cursor support'
'libxpm: X11 pixmap support'
'openexr: OpenEXR support'
'openjpeg2: JPEG 2000 support'
'libjxl: JPEG XL support'
'libilbm: Amiga ILBM support'
'darktable: Importing RAWs'
'rawtherapee: Importing RAWs'
'gdb: Debugger'
'lldb: Debugger'
'xdg-utils: Sending email with xdg-email'
'gjs: JavaScript scripting support'
'xdg-desktop-portal: Screenshot and color-picking on Wayland')
provides=("${_pkgname}=${pkgver}")
source=(https://download.gimp.org/pub/gimp/v${_pkgver%.*}/${_pkgname}-${_pkgver}.tar.xz
linux.gpl)
sha256sums=('f4d2f96df180ce5543f8b2b35707b9bf11459f00f726ca73da2f406d686d9db7'
'1003bbf5fc292d0d63be44562f46506f7b2ca5729770da9d38d3bb2e8a2f36b3')
prepare() {
cd "${_pkgname}-${_pkgver}"
}
build() {
local meson_options=(
-Dgi-docgen=disabled # enabled by default, depends on gi-docgen
# -Dg-ir-doc=false # disabled by default, depends on yelp-tools
-Dheadless-tests=disabled # enabled by default, depends on xorg-server-xvfb
# -Dwebkit-unmaintained=true # disabled by default (unmaintained), depends on webkit2gtk (4.0)
# -Dlua=true # disabled by default (experimental), depends on luajit and lua51-lgi
)
arch-meson "${_pkgname}-${_pkgver}" build "${meson_options[@]}"
meson compile -C build
}
package() {
meson install -C build --destdir "$pkgdir"
install -Dm 644 "${srcdir}/linux.gpl" "${pkgdir}/usr/share/gimp/3.0/palettes/Linux.gpl"
mv "${pkgdir}/usr/share/icons/hicolor/16x16/apps/gimp.png" "${pkgdir}/usr/share/icons/hicolor/16x16/apps/gimp-devel.png"
mv "${pkgdir}/usr/share/icons/hicolor/22x22/apps/gimp.png" "${pkgdir}/usr/share/icons/hicolor/22x22/apps/gimp-devel.png"
mv "${pkgdir}/usr/share/icons/hicolor/24x24/apps/gimp.png" "${pkgdir}/usr/share/icons/hicolor/24x24/apps/gimp-devel.png"
mv "${pkgdir}/usr/share/icons/hicolor/32x32/apps/gimp.png" "${pkgdir}/usr/share/icons/hicolor/32x32/apps/gimp-devel.png"
mv "${pkgdir}/usr/share/icons/hicolor/48x48/apps/gimp.png" "${pkgdir}/usr/share/icons/hicolor/48x48/apps/gimp-devel.png"
mv "${pkgdir}/usr/share/icons/hicolor/64x64/apps/gimp.png" "${pkgdir}/usr/share/icons/hicolor/64x64/apps/gimp-devel.png"
mv "${pkgdir}/usr/share/icons/hicolor/256x256/apps/gimp.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/gimp-devel.png"
mv "${pkgdir}/usr/share/icons/hicolor/scalable/apps/gimp.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/gimp-devel.svg"
mv "${pkgdir}/usr/share/metainfo/org.gimp.GIMP.appdata.xml" "${pkgdir}/usr/share/metainfo/org.gimp.GIMP-devel.appdata.xml"
sed -i 's/org.gimp.GIMP/org.gimp.GIMP-devel/g' "${pkgdir}/usr/share/metainfo/org.gimp.GIMP-devel.appdata.xml"
sed -i 's/gimp.desktop/gimp-devel.desktop/g' "${pkgdir}/usr/share/metainfo/org.gimp.GIMP-devel.appdata.xml"
mv "${pkgdir}/usr/share/applications/gimp.desktop" "${pkgdir}/usr/share/applications/gimp-devel.desktop"
sed -i 's/^\(Name.*\)/\1 (devel)/g' "${pkgdir}/usr/share/applications/gimp-devel.desktop"
sed -i 's/Icon=gimp/Icon=gimp-devel/g' "${pkgdir}/usr/share/applications/gimp-devel.desktop"
rm "${pkgdir}/usr/share/man/man1/gimp-console.1"
rm "${pkgdir}/usr/share/man/man1/gimp.1"
rm "${pkgdir}/usr/share/man/man1/gimptool.1"
rm "${pkgdir}/usr/share/man/man5/gimprc.5"
rm "${pkgdir}/usr/bin/gimp"
rm "${pkgdir}/usr/bin/gimp-console"
rm "${pkgdir}/usr/bin/gimp-test-clipboard"
rm "${pkgdir}/usr/bin/gimptool"
rm "${pkgdir}/usr/lib/gimp-debug-tool"
}
|