From 40f0b1c7106cc1fed13f14e80f083ecd69c416f5 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 1 May 2011 22:33:26 +0000 Subject: Sun May 1 22:33:26 UTC 2011 --- extra/gnome-games/PKGBUILD | 40 ++++++++++++----------------------- extra/gnome-games/gnome-games.install | 4 +++- 2 files changed, 17 insertions(+), 27 deletions(-) (limited to 'extra/gnome-games') diff --git a/extra/gnome-games/PKGBUILD b/extra/gnome-games/PKGBUILD index 82a3b0221..0864fb792 100644 --- a/extra/gnome-games/PKGBUILD +++ b/extra/gnome-games/PKGBUILD @@ -1,52 +1,40 @@ -# $Id: PKGBUILD 105513 2011-01-10 10:03:28Z jgc $ +# $Id: PKGBUILD 120383 2011-04-23 09:47:40Z ibiru $ # Maintainer: Jan de Groot pkgname=gnome-games -pkgver=2.32.1 +pkgver=3.0.1.1 pkgrel=2 pkgdesc="Some Games for GNOME" arch=('i686' 'x86_64') license=('GPL') -depends=('pygtk' 'libsm' 'gconf>=2.32.0' 'guile>=1.8.7' 'filesystem>=2010.09' 'desktop-file-utils' 'libcanberra>=0.25' 'clutter-gtk>=0.10.8' 'hicolor-icon-theme' 'librsvg>=2.32.0' 'python-rsvg>=2.32.0' 'python2-gconf') -makedepends=('gnome-doc-utils>=0.20.1' 'intltool' 'glproto' 'gobject-introspection') -optdepends=('python-gtkglext: glchess 3D mode') -provides=('glchess' 'gnome-sudoku') -conflicts=('glchess' 'gnome-sudoku') +depends=('libsm' 'gconf' 'guile' 'desktop-file-utils' 'libcanberra' 'clutter-gtk' 'hicolor-icon-theme' 'librsvg' 'seed') +makedepends=('gnome-doc-utils' 'intltool' 'gobject-introspection') +provides=('glchess') +conflicts=('glchess') options=('!emptydirs' '!libtool') install=gnome-games.install url="http://www.gnome.org" groups=('gnome-extra') -source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/2.32/${pkgname}-${pkgver}.tar.bz2 - 03_missing_icons.patch - scores.png) -sha256sums=('1a3b2e82102eed3780f05db4378111c475456678deed82fd4ca379da1c5593d9' - '05d63319773e5389b87672a20b03c4c1e91a33fd1678b5e76335bf7e4daa46a6' - '2f818741bbf20fc83a68d71908de76f5f1b2b9e27691a4767aebf0e4a39fee85') +source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/${pkgver%.*.*}/${pkgname}-${pkgver}.tar.bz2) +sha256sums=('dbbda8aa6960e36acff7537e49e033fc8037e6b3b3aa52d5f066cb67b34b4319') build() { cd "${srcdir}/${pkgname}-${pkgver}" - patch -Np1 -i "${srcdir}/03_missing_icons.patch" - PYTHON=python2 ./configure --prefix=/usr --sysconfdir=/etc \ + PYTHON=/usr/bin/python2 ./configure --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var --disable-scrollkeeper \ --disable-static \ --with-scores-user=root --with-scores-group=games \ - --enable-introspection=yes \ - --enable-omitgames=swell-foop,lightsoff + --enable-introspection=yes make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" make -j1 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install # Remove all scores, we generate them from postinstall rm -rf "${pkgdir}/var" - sed -i "s|#!/usr/bin/python$|#!/usr/bin/python2|" \ - $pkgdir/usr/lib/python2.7/site-packages/gnome_sudoku/{tracker_info,number_box}.py - - sed -i "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ - $pkgdir/usr/bin/{gnome-sudoku,glchess} - - install -m755 -d "${pkgdir}/usr/share/icons/hicolor/24x24/actions" - install -m644 "${srcdir}/scores.png" "${pkgdir}/usr/share/icons/hicolor/24x24/actions/" - install -m755 -d "${pkgdir}/usr/share/gconf/schemas" gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" --domain gnome-games ${pkgdir}/etc/gconf/schemas/*.schemas rm -f ${pkgdir}/etc/gconf/schemas/*.schemas diff --git a/extra/gnome-games/gnome-games.install b/extra/gnome-games/gnome-games.install index ac7091f45..1f67c2e01 100644 --- a/extra/gnome-games/gnome-games.install +++ b/extra/gnome-games/gnome-games.install @@ -88,9 +88,10 @@ scores=(glines.Large.scores quadrapassel.scores) post_install() { + usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas usr/sbin/gconfpkg --install ${pkgname} update-desktop-database -q - gtk-update-icon-cache -q -f -t usr/share/icons/hicolor + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor for sz in Large Medium Small; do if [ -e "opt/gnome/var/games/same-gnome.${sz}.scores" ]; then @@ -142,6 +143,7 @@ pre_remove() { } post_remove() { + usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas update-desktop-database -q gtk-update-icon-cache -q -f -t usr/share/icons/hicolor -- cgit v1.2.3-54-g00ecf