Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 24th, 2012  |  syntax: None  |  size: 3.91 KB  |  views: 114  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: György Balló <ballogy@freestart.hu>
  2. # Contributor: Jan de Groot <jgc@archlinux.org>
  3.  
  4. pkgbase=gtk2-ubuntu
  5. pkgname=gtk2-ubuntu
  6. true && pkgname=('gtk2-ubuntu' 'gtk-update-icon-cache-ubuntu')
  7. pkgver=2.24.11
  8. pkgrel=1
  9. arch=('i686' 'x86_64')
  10. url="http://www.gtk.org/"
  11. makedepends=('gtk-doc' 'atk' 'pango' 'libxcursor' 'libxinerama' 'libxrandr' 'libxi' 'libxcomposite' 'libxdamage'
  12.              'shared-mime-info' 'cairo' 'libcups' 'gdk-pixbuf2' 'gobject-introspection')
  13. options=('!libtool' '!docs')
  14. license=('LGPL')
  15. source=(https://launchpad.net/ubuntu/+archive/primary/+files/gtk%2B2.0_2.24.11.orig.tar.xz
  16.         xid-collision-debug.patch
  17.         010_make_bg_changes_queue_repaint.patch
  18.         012_ubuntu-set-grab-add.patch
  19.         043_ubuntu_menu_proxy.patch
  20.         fix-ubuntumenuproxy-build.patch
  21.         071_no_offscreen_widgets_grabbing.patch
  22.         100_overlay_scrollbar_loading.patch)
  23. sha256sums=('328b4ea19a61040145e777e2ac49820968a382ac8581a380c9429897881812a9'
  24.             'd758bb93e59df15a4ea7732cf984d1c3c19dff67c94b957575efea132b8fe558'
  25.             '910feb3b592c5699f7b5b11ca0b5a33b950824eec9ddd063106cad676a627e86'
  26.             '32e6765f7e0bebb135eb715561be05ecdc178b1bd24b6ae6526fef8c815e5b00'
  27.             '83280aa0f3ac1e2456656d3e97d804ec5f891737f93799fcb1cc1f1dd0d9a41a'
  28.             '765557de3d3c1ee2e097d5d281ccd58f7bb3f61236702079cfe5d6fac373f669'
  29.             'e2e2ed1ee10a9ef7672eaa4b44c66c7422e24ca55f50cf4989967ed3392b1fa8'
  30.             '14c658b025c06fb832abf8a5fd5ae911e22276f95051f4f8453cd983880a24ca')
  31.  
  32. build() {
  33.     cd "$srcdir/gtk+-$pkgver"
  34.     patch -Np1 -i "$srcdir/xid-collision-debug.patch"
  35.  
  36.     # Make background changes queue a repaint (fix for overlay-scrollbar)
  37.     patch -Np1 -i "$srcdir/010_make_bg_changes_queue_repaint.patch"
  38.  
  39.     # Add ubuntu-set-grab-add signal (required for ido)
  40.     patch -Np1 -i "$srcdir/012_ubuntu-set-grab-add.patch"
  41.  
  42.     # Add Ubuntu menuproxy module (required for appmenu-gtk)
  43.     patch -Np1 -i "$srcdir/043_ubuntu_menu_proxy.patch"
  44.     patch -Np1 -i "$srcdir/fix-ubuntumenuproxy-build.patch"
  45.  
  46.     # Don't let offscreen widget do grabbing (fix for ido)
  47.     patch -Np1 -i "$srcdir/071_no_offscreen_widgets_grabbing.patch"
  48.  
  49.     # Add support for the ayatana overlay scrollbars (required for overlay-scrollbar)
  50.     patch -Np1 -i "$srcdir/100_overlay_scrollbar_loading.patch"
  51.  
  52.     autoreconf -fi
  53.     CXX=/bin/false ./configure --prefix=/usr \
  54.         --sysconfdir=/etc \
  55.         --localstatedir=/var \
  56.         --with-xinput=yes
  57.  
  58.     # https://bugzilla.gnome.org/show_bug.cgi?id=655517
  59.     sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  60.  
  61.     make
  62. }
  63.  
  64. package_gtk2-ubuntu() {
  65.     pkgdesc="GTK+ is a multi-platform toolkit (v2) with Ubuntu's modifications"
  66.     install=gtk2.install
  67.     depends=('atk' 'pango' 'libxcursor' 'libxinerama' 'libxrandr' 'libxi' 'libxcomposite' 'libxdamage' 'shared-mime-info' 'cairo' 'libcups' 'gtk-update-icon-cache')
  68.     provides=("gtk2=$pkgver")
  69.     conflicts=('gtk2')
  70.     backup=(etc/gtk-2.0/gtkrc)
  71.  
  72.     cd "$srcdir/gtk+-$pkgver"
  73.  
  74.     make DESTDIR="$pkgdir" install
  75.     sed -i "s#env python#env python2#" $pkgdir/usr/bin/gtk-builder-convert
  76.     echo 'gtk-fallback-icon-theme = "gnome"' > "$pkgdir/etc/gtk-2.0/gtkrc"
  77.     #split this out to use with gtk3 too
  78.     rm $pkgdir/usr/bin/gtk-update-icon-cache
  79. }
  80. package_gtk-update-icon-cache-ubuntu() {
  81.     pkgdesc="The GTK+ update icon cache tool with Ubuntu's modifications"
  82.     depends=('gdk-pixbuf2')
  83.     provides=("gtk-update-icon-cache=$pkgver")
  84.     conflicts=('gtk-update-icon-cache')
  85.  
  86.     cd "$srcdir/gtk+-$pkgver/gtk"
  87.  
  88.     install -D -m755 gtk-update-icon-cache $pkgdir/usr/bin/gtk-update-icon-cache
  89. }
  90.  
  91. pkgdesc="GTK+ is a multi-platform toolkit (v2) with Ubuntu's modifications"
  92. depends=('atk' 'pango' 'libxcursor' 'libxinerama' 'libxrandr' 'libxi' 'libxcomposite' 'libxdamage' 'shared-mime-info' 'cairo' 'libcups' 'gdk-pixbuf2')
  93. true && depends=()
clone this paste RAW Paste Data