blob: a7dd3dc4a68c02603f7504cae2db24029eb48045 (
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
# Contributor: Filipe Laíns (FFY00) <filipe.lains@gmail.com>
# Contributor: Iru Cai <mytbk920423@gmail.com>
# Contributor: Alexander Hunziker <alex.hunziker@gmail.com>
# Contributor: Alessio Biancalana <dottorblaster@gmail.com>
pkgname=gimp-develop-git
_pkgname=${pkgname%-develop-git}
epoch=1
pkgver=2.99.1.r1398.f7ac033777
pkgrel=1
pkgdesc="GNU Image Manipulation Program (non-conflicting git version)"
arch=('i686' 'x86_64')
url="https://www.gimp.org"
license=('GPL' 'LGPL')
depends=(
'lcms2>=@_lcms_version@'
'libwmf>=@_wmf_version@'
'icu'
'enchant'
'libgexiv2>=@_gexiv2_version@'
'librsvg>=@_rsvg_version@'
'desktop-file-utils'
'libexif>=0.6.15'
'libart-lgpl>=2.3.19'
'dbus-glib'
'gtk-doc>=@_gtkdoc_version@'
'poppler-glib>=@_poppler_version@'
'poppler-data>=@_poppler_data_version@'
'openexr>=@_openexr_version@'
'mypaint-brushes1>=@_libmypaint_version@'
'babl>=@_babl_version@'
'gegl>=@_gegl_version@'
'cairo>=@_cairo_version@'
'appstream-glib>=@_appstream_glib_version@'
'gobject-introspection>=@_introspection_version@'
)
makedepends=('git' 'intltool>=0.40.1'
'alsa-lib>=1.0.0' 'libxslt' 'glib-networking'
'alsa-lib' 'curl' 'ghostscript' 'libxpm' 'webkit2gtk'
'libheif' 'libwebp' 'libmng' 'iso-codes' 'aalib' 'zlib'
'gjs' 'python-gobject' 'luajit' 'meson' 'xorg-server-xvfb'
)
checkdepends=('xorg-server-xvfb')
optdepends=('gutenprint: for sophisticated printing only as gimp has built-in cups print support'
'alsa-lib: for MIDI event controller module'
'curl: for URI support'
'ghostscript: for postscript support'
'libxpm: XPM support'
'webkit2gtk: HTML renderer and web content engine'
'libheif: HEIF support'
'libwebp: WebP support'
'libmng: MNG support'
'iso-codes: Language support'
'aalib: ASCII art support'
'zlib: Compression routines'
'gjs: JavaScript scripting support'
'luajit: LUA scripting support'
)
source=('git+https://gitlab.gnome.org/GNOME/gimp.git'
'linux.gpl')
sha512sums=('SKIP'
'6f33d57f242fa8ce04b65e06a712bd54677306a45b22cb853fbe348089cd4673bd4ed91073074fe067166fe8951c370f8bbbc386783e3ed5170d52e9062666fe')
pkgver() {
cd ${srcdir}/${_pkgname}
printf %s.%s.%s.r%s.%s $(grep -oP 'gimp_(major|minor|micro)_version\], \[\K[0-9]{1,2}' configure.ac) $(git rev-list $(git describe --abbrev=0)..HEAD --count) $(git log --pretty=format:'%h' -n 1)
}
prepare() {
export CFLAGS CXXFLAGS LDFLAGS
mkdir "${srcdir}/build" -p
meson "${srcdir}/${_pkgname}"\
"${srcdir}/build"\
--prefix=/usr
}
build() {
export NINJA_STATUS="[%p | %f<%r<%u | %cbps ] "
ninja -C "${srcdir}/build"
}
check() {
ninja -C "${srcdir}/build" test
}
package() {
DESTDIR="${pkgdir}" ninja -C "${srcdir}/build" install
install -Dm 644 "${srcdir}/linux.gpl" "${pkgdir}/usr/share/gimp/2.99/palettes/Linux.gpl"
#fix gimp.desktop
mv ${pkgdir}/usr/share/applications/gimp.desktop ${pkgdir}/usr/share/applications/gimp-2.99.desktop
sed -i 's/Icon=gimp/&-2.99/' ${pkgdir}/usr/share/applications/gimp-2.99.desktop
#fix icons
for icon in $(find ${pkgdir}/usr/share/icons -type f); do
mv ${icon} ${icon%.png}-2.99.png
done
#fix man
rm ${pkgdir}/usr/share/man/man1/gimp{,tool,-console}.1
rm ${pkgdir}/usr/share/man/man5/gimprc.5
#fix metainfo
rm -rf ${pkgdir}/usr/share/metainfo
rm ${pkgdir}/usr/share/appdata/gimp-data-extras.metainfo.xml
}
|