summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBehnam Momeni2020-01-31 18:12:34 +0330
committerBehnam Momeni2020-01-31 18:12:34 +0330
commite6b87e69d4900baf28956cf06e2cd3336169467d (patch)
tree5b80462d066c472effc2968b15a31313219a115c
parent14cc3a465d9fbabc45969fb60a581cdd91572b18 (diff)
downloadaur-e6b87e69d4900baf28956cf06e2cd3336169467d.tar.gz
Upgrading to version 2.10.14
-rw-r--r--.SRCINFO34
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD69
3 files changed, 88 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a15faec4ec7..7e5e23cb058 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,41 @@
+# Generated by mksrcinfo v8
+# Fri Jan 31 14:41:46 UTC 2020
pkgbase = lib32-gimp
pkgdesc = GNU Image Manipulation Program (32-bit)
- pkgver = 2.8.22
+ pkgver = 2.10.14
pkgrel = 1
- url = http://www.gimp.org/
+ url = https://www.gimp.org/
arch = x86_64
license = GPL
license = LGPL
- depends = lib32-glibc
+ makedepends = alsa-lib
+ makedepends = curl
+ makedepends = ghostscript
+ makedepends = intltool
+ makedepends = iso-codes
+ depends = lib32-dbus-glib
+ depends = lib32-gegl
+ depends = lib32-glib-networking
+ depends = lib32-lcms2
+ depends = lib32-libheif
+ depends = lib32-libexif
+ depends = lib32-libgudev
+ depends = lib32-libmng
depends = lib32-cairo
- depends = lib32-gdk-pixbuf2
+ depends = lib32-libmypaint
+ depends = lib32-libwebp
+ depends = lib32-libwmf
+ depends = lib32-libxmu
+ depends = lib32-libxpm
depends = lib32-glib2
+ depends = lib32-glibc
+ depends = lib32-gdk-pixbuf2
depends = lib32-pango
+ depends = lib32-libunwind
+ depends = lib32-poppler-glib
depends = gimp
- source = https://www.archlinux.org/packages/extra/i686/gimp/download/#gimp-i686.pkg.tar.xz
- md5sums = 045e99dacca4c9f6ca57010b8cd28043
+ source = https://download.gimp.org/pub/gimp/v2.10/gimp-2.10.14.tar.bz2
+ sha256sums = df9b0f11c2078eea1de3ebc66529a5d3854c5e28636cd25a8dd077bd9d6ddc54
pkgname = lib32-gimp
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..f2f54d2a0f0
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+gimp-*.tar.bz2
+lib32-gimp-*.pkg.tar.xz
+src/
+pkg/
diff --git a/PKGBUILD b/PKGBUILD
index 5754023bb04..522f922e9ac 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,63 @@
-_pkgbase=gimp
+# Maintainer: Behnam Momeni <sbmomeni [at the] gmail [dot] com>
+# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Daniel Isenmann <daniel@archlinux.org>
+
pkgname=lib32-gimp
-pkgver=2.8.22
+_pkgbase=gimp
+pkgver=2.10.14
pkgrel=1
-pkgdesc="GNU Image Manipulation Program (32-bit)"
+pkgdesc='GNU Image Manipulation Program (32-bit)'
+url="https://www.gimp.org/"
arch=('x86_64')
-url="http://www.gimp.org/"
-depends=( 'lib32-glibc' 'lib32-cairo' 'lib32-gdk-pixbuf2' 'lib32-glib2' 'lib32-pango' 'gimp')
+depends=('lib32-dbus-glib' 'lib32-gegl' 'lib32-glib-networking'
+ 'lib32-lcms2' 'lib32-libheif' 'lib32-libexif' 'lib32-libgudev'
+ 'lib32-libmng' 'lib32-cairo' 'lib32-libmypaint'
+ 'lib32-libwebp' 'lib32-libwmf' 'lib32-libxmu' 'lib32-libxpm'
+ 'lib32-glib2' 'lib32-glibc' 'lib32-gdk-pixbuf2' 'lib32-pango'
+ 'lib32-libunwind' 'lib32-poppler-glib' 'gimp')
+makedepends=('alsa-lib' 'curl' 'ghostscript' 'intltool' 'iso-codes')
license=('GPL' 'LGPL')
-source=(https://www.archlinux.org/packages/extra/i686/gimp/download/#gimp-i686.pkg.tar.xz)
-md5sums=('045e99dacca4c9f6ca57010b8cd28043')
-pkgver() {
- cat $srcdir/.PKGINFO | grep -oP '(?<=pkgver = )\d+\.\d+\.\d+'
+source=("https://download.gimp.org/pub/gimp/v${pkgver%.*}/${_pkgbase}-${pkgver}.tar.bz2")
+sha256sums=('df9b0f11c2078eea1de3ebc66529a5d3854c5e28636cd25a8dd077bd9d6ddc54')
+
+prepare() {
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+ export CFLAGS="-m32 ${CFLAGS}"
+ export LDFLAGS="-m32 ${LDFLAGS}"
+ export CXXFLAGS="-m32 ${CXXFLAGS}"
+
+ cd "${_pkgbase}-${pkgver}"
+ autoreconf -vi
+}
+
+build() {
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+ export CFLAGS="-m32 ${CFLAGS}"
+ export LDFLAGS="-m32 ${LDFLAGS}"
+ export CXXFLAGS="-m32 ${CXXFLAGS}"
+
+ pkg-config --exists --print-errors "OpenEXR >= 1.6.1"
+ cd ${_pkgbase}-${pkgver}
+ PYTHON=/usr/bin/python2 ./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib32 \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/bin \
+ --enable-mp \
+ --enable-gimp-console \
+ --disable-python \
+ --with-bug-report-url='https://bugs.archlinux.org/?string=gimp' \
+ --with-openexr \
+ --without-aa
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ make
}
+
package() {
- mkdir -p ${pkgdir}/usr/lib32
- cp -rPf ${srcdir}/usr/lib/*.so* ${pkgdir}/usr/lib32
- install -dm755 "${pkgdir}"/usr/share/licenses
- ln -s ${_pkgbase} "${pkgdir}"/usr/share/licenses/${pkgname}
+ cd ${_pkgbase}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+
+ rm -r "${pkgdir}/usr/"{share,include,bin}
+ rm -r "${pkgdir}/etc"
}
+