summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Brunel2014-02-08 13:29:26 +0100
committerOlivier Brunel2015-06-08 18:52:11 +0200
commit919c1cc9f7380284f8485050d7c708b8fd327923 (patch)
tree9e5f813e06a5181fcf9c016617ea66e816294a58
downloadaur-919c1cc9f7380284f8485050d7c708b8fd327923.tar.gz
gtk3-donnatella: Import gtk3 from ABS
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
-rw-r--r--.SRCINFO35
-rw-r--r--PKGBUILD45
-rw-r--r--gtk3.install16
-rw-r--r--settings.ini4
4 files changed, 100 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..978b571b0c1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,35 @@
+pkgbase = gtk3
+ pkgdesc = GObject-based multi-platform GUI toolkit (v3)
+ pkgver = 3.10.7
+ pkgrel = 1
+ url = http://www.gtk.org/
+ install = gtk3.install
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ makedepends = gobject-introspection
+ depends = atk
+ depends = cairo
+ depends = gtk-update-icon-cache
+ depends = libcups
+ depends = libxcursor
+ depends = libxinerama
+ depends = libxrandr
+ depends = libxi
+ depends = libxcomposite
+ depends = libxdamage
+ depends = pango
+ depends = shared-mime-info
+ depends = colord
+ depends = at-spi2-atk
+ depends = wayland
+ depends = libxkbcommon
+ optdepends = gnome-themes-standard: Default widget theme
+ optdepends = gnome-icon-theme: Default icon theme
+ source = http://ftp.gnome.org/pub/gnome/sources/gtk+/3.10/gtk+-3.10.7.tar.xz
+ source = settings.ini
+ sha256sums = b7e9de15385031cff43897e7e59f6692eaabf500f36eef80e6b9d6486ad49427
+ sha256sums = 14369dfd1d325c393e17c105d5d5cc5501663277bd4047ea04a50abb3cfbd119
+
+pkgname = gtk3
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1cefe9bd893
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru@archlinux.org>
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
+
+pkgname=gtk3
+pkgver=3.10.7
+pkgrel=1
+pkgdesc="GObject-based multi-platform GUI toolkit (v3)"
+arch=(i686 x86_64)
+url="http://www.gtk.org/"
+install=gtk3.install
+depends=(atk cairo gtk-update-icon-cache libcups libxcursor libxinerama libxrandr libxi
+ libxcomposite libxdamage pango shared-mime-info colord at-spi2-atk wayland libxkbcommon)
+makedepends=(gobject-introspection)
+optdepends=('gnome-themes-standard: Default widget theme'
+ 'gnome-icon-theme: Default icon theme')
+license=(LGPL)
+source=(http://ftp.gnome.org/pub/gnome/sources/gtk+/${pkgver%.*}/gtk+-$pkgver.tar.xz
+ settings.ini)
+sha256sums=('b7e9de15385031cff43897e7e59f6692eaabf500f36eef80e6b9d6486ad49427'
+ '14369dfd1d325c393e17c105d5d5cc5501663277bd4047ea04a50abb3cfbd119')
+
+build() {
+ cd "gtk+-$pkgver"
+
+ CXX=/bin/false ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-gtk2-dependency \
+ --disable-schemas-compile \
+ --enable-x11-backend \
+ --enable-broadway-backend \
+ --enable-wayland-backend
+
+ #https://bugzilla.gnome.org/show_bug.cgi?id=655517
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+ make
+}
+
+package() {
+ cd "gtk+-$pkgver"
+ make DESTDIR="$pkgdir" install
+ install -Dm644 ../settings.ini "$pkgdir/usr/share/gtk-3.0/settings.ini"
+}
diff --git a/gtk3.install b/gtk3.install
new file mode 100644
index 00000000000..ca20d2865d1
--- /dev/null
+++ b/gtk3.install
@@ -0,0 +1,16 @@
+post_install() {
+ /usr/bin/gtk-query-immodules-3.0 --update-cache
+ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ rm -f /usr/lib/gtk-3.0/3.0.0/immodules.cache
+}
+
+post_remove() {
+ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
+}
diff --git a/settings.ini b/settings.ini
new file mode 100644
index 00000000000..6a0643bfa67
--- /dev/null
+++ b/settings.ini
@@ -0,0 +1,4 @@
+[Settings]
+gtk-icon-theme-name = gnome
+gtk-theme-name = Adwaita
+gtk-font-name = Cantarell 11