diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-07 02:31:41 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-07 02:31:41 (GMT) |
commit | 78e6e9afbf9ba87b45032042ee1c9fe0ee426672 (patch) | |
tree | 77d5008e3a2cf039c9c9af725ad575cfe9973f5b /abs/core/gtk2/PKGBUILD | |
parent | 4235867de03bf7a546700e48d50828b430b24d22 (diff) | |
download | linhes_pkgbuild-78e6e9afbf9ba87b45032042ee1c9fe0ee426672.zip linhes_pkgbuild-78e6e9afbf9ba87b45032042ee1c9fe0ee426672.tar.gz linhes_pkgbuild-78e6e9afbf9ba87b45032042ee1c9fe0ee426672.tar.bz2 |
gtk2 2.24.11
Diffstat (limited to 'abs/core/gtk2/PKGBUILD')
-rw-r--r-- | abs/core/gtk2/PKGBUILD | 72 |
1 files changed, 44 insertions, 28 deletions
diff --git a/abs/core/gtk2/PKGBUILD b/abs/core/gtk2/PKGBUILD index 0526600..13d72a2 100644 --- a/abs/core/gtk2/PKGBUILD +++ b/abs/core/gtk2/PKGBUILD @@ -1,40 +1,56 @@ -# $Id: PKGBUILD 99604 2010-11-15 19:29:19Z ibiru $ +# $Id: PKGBUILD 163898 2012-07-21 19:20:18Z ibiru $ # Maintainer: Jan de Groot <jgc@archlinux.org> -pkgname=gtk2 -pkgver=2.22.1 +pkgbase=gtk2 +pkgname=('gtk2' 'gtk-update-icon-cache') +pkgver=2.24.11 pkgrel=1 -pkgdesc="The GTK+ Toolkit (v2)" arch=('i686' 'x86_64') url="http://www.gtk.org/" -install=gtk2.install -depends=('atk>=1.30.0' 'pango>=1.28.0' 'libxcursor' 'libxinerama' 'libxrandr>=1.3.0' 'libxi>=1.3' 'libxcomposite' 'libxdamage' 'heimdal>=1.3.2' 'gnutls>=2.8.6' 'shared-mime-info' 'cairo>=1.10.0' 'libcups>=1.4.4' 'gdk-pixbuf2>=2.22.1') -makedepends=('gtk-doc' 'gobject-introspection') -replaces=('gtkprint-cups' 'gail') -conflicts=('gtkprint-cups' 'gail') -provides=('gail=1.22.3') -options=('!libtool' '!docs') -backup=(etc/gtk-2.0/gtkrc) +makedepends=('atk' 'pango' 'libxcursor' 'libxinerama' 'libxrandr' 'libxi' 'libxcomposite' 'libxdamage' + 'shared-mime-info' 'cairo' 'gdk-pixbuf2' 'gobject-introspection') +options=('!libtool') license=('LGPL') -source=(http://ftp.gnome.org/pub/gnome/sources/gtk+/2.22/gtk+-${pkgver}.tar.bz2 - xid-collision-debug.patch old-icon-symlinks.patch) -sha256sums=('965bc124f0d25087c4cb2a64cbfd7e4f896e05be8d560fbba68dd8685ba24d07' - 'd758bb93e59df15a4ea7732cf984d1c3c19dff67c94b957575efea132b8fe558' - '1298e4103f71d0304378f1e7503011150f6f68398ae8ebae5522a48feaea7c0d') +source=(http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-$pkgver.tar.xz + xid-collision-debug.patch) +sha256sums=('328b4ea19a61040145e777e2ac49820968a382ac8581a380c9429897881812a9' + 'd758bb93e59df15a4ea7732cf984d1c3c19dff67c94b957575efea132b8fe558') build() { - cd "${srcdir}/gtk+-${pkgver}" - patch -Np1 -i "${srcdir}/xid-collision-debug.patch" - patch -Np1 -i "${srcdir}/old-icon-symlinks.patch" + cd "$srcdir/gtk+-$pkgver" + patch -Np1 -i "$srcdir/xid-collision-debug.patch" - CXX=/bin/false ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --with-xinput=yes - make - make DESTDIR="${pkgdir}" install + CXX=/bin/false ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-xinput=yes - sed -i "s#env python#env python2#" $pkgdir/usr/bin/gtk-builder-convert + # https://bugzilla.gnome.org/show_bug.cgi?id=655517 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool - echo 'gtk-fallback-icon-theme = "gnome"' > "${pkgdir}/etc/gtk-2.0/gtkrc" + make +} + +package_gtk2() { + pkgdesc="GTK+ is a multi-platform toolkit (v2)" + install=gtk2.install + depends=('atk' 'pango' 'libxcursor' 'libxinerama' 'libxrandr' 'libxi' 'libxcomposite' 'libxdamage' 'shared-mime-info' 'cairo' 'gtk-update-icon-cache') + backup=(etc/gtk-2.0/gtkrc) + replaces=('gtk2-docs') + + cd "$srcdir/gtk+-$pkgver" + + make DESTDIR="$pkgdir" install + sed -i "s#env python#env python2#" $pkgdir/usr/bin/gtk-builder-convert + echo 'gtk-fallback-icon-theme = "gnome"' > "$pkgdir/etc/gtk-2.0/gtkrc" + #split this out to use with gtk3 too + rm $pkgdir/usr/bin/gtk-update-icon-cache +} +package_gtk-update-icon-cache() { + pkgdesc="The GTK+ update icon cache tool" + depends=('gdk-pixbuf2>=2.24.1-3') + + cd "$srcdir/gtk+-$pkgver/gtk" + + install -D -m755 gtk-update-icon-cache $pkgdir/usr/bin/gtk-update-icon-cache } |