diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/gtk+3.0/APKBUILD | 69 | ||||
-rw-r--r-- | main/gtk+3.0/gtk+3.0.post-deinstall | 5 | ||||
-rw-r--r-- | main/gtk+3.0/gtk+3.0.post-install | 5 | ||||
l--------- | main/gtk+3.0/gtk+3.0.post-upgrade | 1 | ||||
-rw-r--r-- | main/gtk+3.0/gtk+3.0.trigger | 6 |
5 files changed, 86 insertions, 0 deletions
diff --git a/main/gtk+3.0/APKBUILD b/main/gtk+3.0/APKBUILD new file mode 100644 index 000000000..4e1fd4c16 --- /dev/null +++ b/main/gtk+3.0/APKBUILD @@ -0,0 +1,69 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=gtk+3.0 +pkgver=3.0.0 +pkgrel=1 +pkgdesc="The GTK+ Toolkit (v3)" +url="http://www.gtk.org/" +install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall" +triggers="$pkgname.trigger:/usr/share/icons/*" +arch="all" +license="LGPL" +subpackages="$pkgname-dev $pkgname-doc" +depends="shared-mime-info" + +replaces="gtk+" +replaces_dev="gtk+-dev" +replaces_doc="gtk+-doc" + +# depend on gtk+2.0 for update-icon-cache +depends="gtk+2.0" + +makedepends="pkgconfig + atk-dev + cairo-dev + cups-dev + expat-dev + gdk-pixbuf-dev + gettext-dev + glib-dev + gnutls-dev + gobject-introspection + libice-dev + libiconv-dev + jpeg-dev>=8 + 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 intltool gdk-pixbuf-dev" + +_builddir="$srcdir"/gtk+-$pkgver +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-xinput=yes \ + --without-libjasper \ + --with-included-loaders=png || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + + # use gtk+2.0's for now + rm "$pkgdir"/usr/bin/gtk-update-icon-cache +} + +md5sums="8155d7b91cc0c187891349b6fad1a765 gtk+-3.0.0.tar.bz2" diff --git a/main/gtk+3.0/gtk+3.0.post-deinstall b/main/gtk+3.0/gtk+3.0.post-deinstall new file mode 100644 index 000000000..b1e3f7a68 --- /dev/null +++ b/main/gtk+3.0/gtk+3.0.post-deinstall @@ -0,0 +1,5 @@ +#!/bin/sh + +rm -f etc/gtk-3.0/gtk.immodules +rm -f etc/gtk-3.0/gdk-pixbuf.loaders + diff --git a/main/gtk+3.0/gtk+3.0.post-install b/main/gtk+3.0/gtk+3.0.post-install new file mode 100644 index 000000000..0570816c7 --- /dev/null +++ b/main/gtk+3.0/gtk+3.0.post-install @@ -0,0 +1,5 @@ +#!/bin/sh + +usr/bin/gtk-query-immodules-3.0 > etc/gtk-3.0/gtk.immodules +usr/bin/gdk-pixbuf-query-loaders > etc/gtk-3.0/gdk-pixbuf.loaders + diff --git a/main/gtk+3.0/gtk+3.0.post-upgrade b/main/gtk+3.0/gtk+3.0.post-upgrade new file mode 120000 index 000000000..f313df3d1 --- /dev/null +++ b/main/gtk+3.0/gtk+3.0.post-upgrade @@ -0,0 +1 @@ +gtk+3.0.post-install
\ No newline at end of file diff --git a/main/gtk+3.0/gtk+3.0.trigger b/main/gtk+3.0/gtk+3.0.trigger new file mode 100644 index 000000000..adaf66bf6 --- /dev/null +++ b/main/gtk+3.0/gtk+3.0.trigger @@ -0,0 +1,6 @@ +#!/bin/sh + +for i in "$@"; do + gtk-update-icon-cache -q -t -f $i +done + |