summaryrefslogtreecommitdiffstats
path: root/gnome-games/Pkgfile
blob: 3cc5433867563e9a222239b8737f84450f152f2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Description: Jeux pour Gnome
# URL: https://live.gnome.org/GnomeGames
# Maintainer: NuTyX Gnome team
# Packager: piernov <piernov@piernov.org>
# Depends on: libgnomeui, librsvg, rarian, gob, avahi-gtk, gnome-python-desktop, guile, libggz, ggz-client-libs, clutter-gtk, gobject-introspection, aisleriot
# Run on: libgnomeui,librsvg,rarian,gob,avahi-gtk,gnome-python-desktop,guile,libggz,ggz-client-libs,clutter-gtk,aisleriot

name=gnome-games
version=3.2.1
release=1
source=(http://ftp.acc.umu.se/pub/GNOME/sources/$name/${version%.*}/$name-$version.tar.xz)

build() {
	cd $name-$version
	./configure --prefix=/usr \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--disable-schemas-install \
		--disable-schemas-compile \
		--disable-scrollkeeper \
		--disable-setgid \
		--enable-introspection=yes \
		--enable-sound \
		--with-scores-user=root \
		--with-scores-group=games
	make
	make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR=$PKG install

	install -m755 -d $PKG/usr/share/gconf/schemas
	gconf-merge-schema $PKG/usr/share/gconf/schemas/$name.schemas --domain gnome-games $PKG/etc/gconf/schemas/*.schemas
	rm -f $PKG/etc/gconf/schemas/*.schemas

	chown -R root:games $PKG/var/games
	chmod -R 664 $PKG/var/games

	sed -i 's|#! /usr/bin/env python|#!/usr/bin/env python2|' $PKG/usr/bin/gnome-sudoku
}