aboutsummaryrefslogtreecommitdiffstats
path: root/main/gtk+
diff options
context:
space:
mode:
Diffstat (limited to 'main/gtk+')
-rw-r--r--main/gtk+/APKBUILD52
-rw-r--r--main/gtk+/gtk+.post-deinstall5
-rw-r--r--main/gtk+/gtk+.post-install5
l---------main/gtk+/gtk+.post-upgrade1
-rw-r--r--main/gtk+/gtk+.trigger5
5 files changed, 68 insertions, 0 deletions
diff --git a/main/gtk+/APKBUILD b/main/gtk+/APKBUILD
new file mode 100644
index 0000000000..ff5b65b130
--- /dev/null
+++ b/main/gtk+/APKBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=gtk+
+pkgver=2.18.6
+pkgrel=0
+pkgdesc="The GTK+ Toolkit (v2)"
+url="http://www.gtk.org/"
+install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
+triggers="$pkgname.trigger:/usr/share/icons/*"
+license="LGPL"
+subpackages="$pkgname-dev $pkgname-doc"
+depends="shared-mime-info"
+makedepends="pkgconfig
+ atk-dev
+ cairo-dev
+ cups-dev
+ expat-dev
+ gettext-dev
+ glib-dev
+ gnutls-dev
+ libice-dev
+ libiconv-dev
+ jpeg-dev
+ libx11-dev
+ libxcomposite-dev
+ libxcursor-dev
+ libxdamage-dev
+ libxext-dev
+ libxfixes-dev
+ libxrandr-dev
+ libxi-dev
+ pango-dev
+ tiff-dev
+ zlib-dev"
+source="http://ftp.gnome.org/pub/gnome/sources/gtk+/${pkgver%.*}/gtk+-$pkgver.tar.bz2"
+
+depends_dev="atk-dev pango-dev cairo-dev glib-dev"
+build() {
+ cd "$srcdir"/gtk+-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-xinput=yes \
+ --without-libjasper \
+ --with-included-loaders=png || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/gtk+-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="3b32073cf1fad755f7c2b2db71aebe90 gtk+-2.18.6.tar.bz2"
diff --git a/main/gtk+/gtk+.post-deinstall b/main/gtk+/gtk+.post-deinstall
new file mode 100644
index 0000000000..e7ee2a1517
--- /dev/null
+++ b/main/gtk+/gtk+.post-deinstall
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+rm -f etc/gtk-2.0/gtk.immodules
+rm -f etc/gtk-2.0/gdk-pixbuf.loaders
+
diff --git a/main/gtk+/gtk+.post-install b/main/gtk+/gtk+.post-install
new file mode 100644
index 0000000000..80444cfb93
--- /dev/null
+++ b/main/gtk+/gtk+.post-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+usr/bin/gtk-query-immodules-2.0 > etc/gtk-2.0/gtk.immodules
+usr/bin/gdk-pixbuf-query-loaders > etc/gtk-2.0/gdk-pixbuf.loaders
+
diff --git a/main/gtk+/gtk+.post-upgrade b/main/gtk+/gtk+.post-upgrade
new file mode 120000
index 0000000000..127667db2d
--- /dev/null
+++ b/main/gtk+/gtk+.post-upgrade
@@ -0,0 +1 @@
+gtk+.post-install \ No newline at end of file
diff --git a/main/gtk+/gtk+.trigger b/main/gtk+/gtk+.trigger
new file mode 100644
index 0000000000..e9ff91c91b
--- /dev/null
+++ b/main/gtk+/gtk+.trigger
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+for i in "$@"; do
+ gtk-update-icon-cache -q -t -f $i
+done