summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-06 03:46:35 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-06 03:46:35 -0500
commita46ee632e4f7bb5bcb077316d92b68b844b204e1 (patch)
tree0f65fbaff633c310e583f187f902ff7b64124f1b
parent8ef711c56a6203c7adda323017f05858f5c42ed4 (diff)
downloadpackages-a46ee632e4f7bb5bcb077316d92b68b844b204e1.tar.gz
packages-a46ee632e4f7bb5bcb077316d92b68b844b204e1.tar.bz2
packages-a46ee632e4f7bb5bcb077316d92b68b844b204e1.tar.xz
packages-a46ee632e4f7bb5bcb077316d92b68b844b204e1.zip
user/gdk-pixbuf: pull in, bump, fix, take
-rw-r--r--user/gdk-pixbuf/APKBUILD62
-rw-r--r--user/gdk-pixbuf/gdk-pixbuf.pre-deinstall3
-rw-r--r--user/gdk-pixbuf/gdk-pixbuf.trigger3
3 files changed, 68 insertions, 0 deletions
diff --git a/user/gdk-pixbuf/APKBUILD b/user/gdk-pixbuf/APKBUILD
new file mode 100644
index 000000000..9574ae054
--- /dev/null
+++ b/user/gdk-pixbuf/APKBUILD
@@ -0,0 +1,62 @@
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=gdk-pixbuf
+pkgver=2.36.12
+pkgrel=0
+pkgdesc="GTK+ image loading library"
+url="https://www.gtk.org/"
+arch="all"
+license="LGPL-2.0+"
+depends="shared-mime-info"
+depends_dev=""
+makedepends="$depends_dev tiff-dev libjpeg-turbo-dev gobject-introspection-dev
+ libpng-dev glib-dev"
+install="$pkgname.pre-deinstall"
+triggers="$pkgname.trigger=/usr/lib/gdk-pixbuf-2.0/*/loaders"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
+source="https://download.gnome.org/sources/gdk-pixbuf/${pkgver%.*}/gdk-pixbuf-$pkgver.tar.xz
+ "
+replaces="gtk+"
+
+# secfixes:
+# 2.36.6-r1:
+# - CVE-2017-6311
+# - CVE-2017-6312
+# - CVE-2017-6314
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-x11 \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --with-libjpeg \
+ --with-libtiff \
+ --enable-introspection
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+doc() {
+ replaces="gtk+-doc"
+ default_doc
+}
+
+dev() {
+ replaces="gtk+-dev"
+ default_dev
+}
+
+sha512sums="5d3bd620cf464bf92079b15c78f8400db48c427053c6eeedc4ea9652a4c290a09a26310100cc7eb487daf4b565df9f7e3a6edf14685f81ddbff6a0652fb6b41b gdk-pixbuf-2.36.12.tar.xz"
diff --git a/user/gdk-pixbuf/gdk-pixbuf.pre-deinstall b/user/gdk-pixbuf/gdk-pixbuf.pre-deinstall
new file mode 100644
index 000000000..d7497db4b
--- /dev/null
+++ b/user/gdk-pixbuf/gdk-pixbuf.pre-deinstall
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+rm -f /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
diff --git a/user/gdk-pixbuf/gdk-pixbuf.trigger b/user/gdk-pixbuf/gdk-pixbuf.trigger
new file mode 100644
index 000000000..b97f005f0
--- /dev/null
+++ b/user/gdk-pixbuf/gdk-pixbuf.trigger
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+gdk-pixbuf-query-loaders --update-cache