[gimp/meson: 8/9] Add Archlinux build system
- From: Félix Piédallu <fpiedallu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/meson: 8/9] Add Archlinux build system
- Date: Fri, 16 Feb 2018 13:56:50 +0000 (UTC)
commit 1c6b177150b0f01fdbc75dbcba9bee239c3fc4ee
Author: Félix Piédallu <felix piedallu me>
Date: Fri Nov 17 11:42:07 2017 +0100
Add Archlinux build system
build/archlinux/.gitignore | 3 +
build/archlinux/PKGBUILD | 114 ++++++++++++++++++++++++++++++++++++++++++++
build/archlinux/linux.gpl | 19 +++++++
3 files changed, 136 insertions(+), 0 deletions(-)
---
diff --git a/build/archlinux/.gitignore b/build/archlinux/.gitignore
new file mode 100644
index 0000000..88342aa
--- /dev/null
+++ b/build/archlinux/.gitignore
@@ -0,0 +1,3 @@
+/gimp
+/pkg
+/src
diff --git a/build/archlinux/PKGBUILD b/build/archlinux/PKGBUILD
new file mode 100644
index 0000000..e028932
--- /dev/null
+++ b/build/archlinux/PKGBUILD
@@ -0,0 +1,114 @@
+# Maintainer: Iru Cai <mytbk920423 gmail com>
+# Maintainer: Alexander Hunziker <alex hunziker gmail com>
+# Contributor: Alessio Biancalana <dottorblaster gmail com>
+# Contributor: Salamandar <felix piedallu me>
+
+_pkgname='gimp'
+pkgname="${_pkgname}-git"
+epoch=1
+pkgver=2.9.8.649.g2ca726dd32
+pkgrel=1
+pkgdesc='GNU Image Manipulation Program'
+arch=('i686' 'x86_64')
+url='http://www.gimp.org'
+license=('GPL' 'LGPL')
+depends=(
+ 'babl>=0.1.27'
+ 'dbus-glib'
+ 'desktop-file-utils'
+ 'gegl-git>=0.3.15'
+ 'gtk-doc'
+ 'lcms2>=2.2'
+ 'libart-lgpl>=2.3.19'
+ 'libexif>=0.6.15'
+ 'libgexiv2'
+ 'libmng'
+ 'libmypaint>=1.3.0'
+ 'librsvg>=2.16.1'
+ 'libwmf>=0.2.8'
+ 'openexr>=1.6.1'
+ 'pygtk'
+)
+makedepends=(
+ 'alsa-lib>=1.0.0'
+ 'git'
+ 'glib-networking'
+ # 'gnome-python>=2.16.2'
+ 'gutenprint>=5.0.0'
+ 'libxslt'
+ 'poppler>=0.12.4'
+)
+optdepends=(
+ 'alsa-lib: for MIDI event controller module'
+ 'curl: for URI support'
+ 'ghostscript: for postscript support'
+ 'gutenprint: for sophisticated printing only as gimp has built-in cups print support'
+ 'poppler-glib: for pdf support'
+)
+options=('!libtool')
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+
+_gitname='gimp'
+source=(
+ 'git://git.gnome.org/gimp#branch=meson'
+ 'linux.gpl'
+)
+md5sums=(
+ 'SKIP'
+ 'bb27bc214261d36484093e857f015f38'
+)
+
+
+pkgver() {
+ cd $_gitname
+ git describe --always | sed -e 's/GIMP_//' -e 's/[_-]/./g'
+}
+
+prepare() {
+ cd "${srcdir}/${_gitname}"
+
+ if [[ -f /usr/lib/pkgconfig/libmypaint-1.3.pc ]]; then
+ sed -i 's|libmypaint |libmypaint-1.3 |g' configure.ac
+ sed -i "s|'libmypaint'|'libmypaint-1.3'|g" meson.build
+ fi
+}
+
+build() {
+ mesonOptions=(
+ --prefix=/usr
+ --sysconfdir=/etc
+ --buildtype=release
+ --strip
+ -Db_lto=true
+
+ -Dwith-aa=false
+ -Dwith-webkit=false
+ -Dwith-xvfb-run=false
+ )
+
+ meson "${srcdir}/build" "${srcdir}/${_gitname}" "${mesonOptions[@]}"
+ ninja -C "${srcdir}/build"
+}
+
+package() {
+ DESTDIR="${pkgdir}" ninja -C "${srcdir}/build" install
+
+ # Python compilation (was handled by Autotools, not Meson)
+ "${srcdir}/${_gitname}/plug-ins/pygimp/py-compile" \
+ --basedir "${pkgdir}/usr/lib/gimp/2.0/python" \
+ gimpenums.py \
+ gimpfu.py \
+ gimpplugin.py \
+ gimpshelf.py \
+ gimpui.py
+
+ # Meson does not handle creating empty directories
+ mkdir -p "${pkgdir}/usr/share/gimp/2.0/fonts/"
+
+ install -D -m644 "${srcdir}/linux.gpl" "${pkgdir}/usr/share/gimp/2.0/palettes/Linux.gpl"
+
+ ln -s gimp-2.9 "${pkgdir}/usr/bin/gimp"
+ ln -s gimptool-2.0 "${pkgdir}/usr/bin/gimptool"
+ ln -s gimp-console-2.9 "${pkgdir}/usr/bin/gimp-console"
+}
diff --git a/build/archlinux/linux.gpl b/build/archlinux/linux.gpl
new file mode 100644
index 0000000..0a73d89
--- /dev/null
+++ b/build/archlinux/linux.gpl
@@ -0,0 +1,19 @@
+GIMP Palette
+Name: linux
+#
+ 0 0 0
+ 0 0 170
+ 0 170 0
+ 0 170 170
+170 0 0
+170 0 170
+170 85 0
+170 170 170
+ 85 85 85
+ 85 85 255
+ 85 255 85
+ 85 255 255
+255 85 85
+255 85 255
+255 255 85
+255 255 255
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]