summaryrefslogtreecommitdiffstats
path: root/gconf/Pkgfile
blob: 1a246a8a34f2937770b2d23dd1f83b00a5750a8f (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
38
39
40
41
# Description: Système de configuration de base de données
# URL: http://www.gnome.org/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: gtk3, orbit2, polkit, dbus-glib, gtk, libldap, libxml2
# Run on: gtk3,orbit2,polkit,dbus-glib,gtk,libldap,libxml2

name=gconf
version=3.2.2
release=1
source=(http://ftp.gnome.org/pub/gnome/sources/GConf/${version%.*}/GConf-$version.tar.xz
	gconf-merge-schema
	gconfpkg
	gconf-reload.patch
	01_xml-gettext-domain.patch)

build() {
	cd GConf-$version

	# Patch de Fedora - Recharge GConf après l'installation de schemas
	patch -Np1 -i ../gconf-reload.patch
	# http://bugzilla.gnome.org/show_bug.cgi?id=568845
	patch -Np1 -i ../01_xml-gettext-domain.patch
	sed -i '1s|#!/usr/bin/env python$|&2|' gsettings/gsettings-schema-convert

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-defaults-service \
		--libexecdir=/usr/lib/GConf \
		--mandir=/usr/share/man \
		--with-gtk=3.0

	make pkglibdir=/usr/lib/GConf
	make DESTDIR=$PKG install
	rm -r $PKG/usr/share/gtk-doc

	install -m755 -d $PKG/etc/gconf/gconf.xml.system
	install -m755 ../gconf-merge-schema $PKG/usr/bin/
	install -Dm755 ../gconfpkg $PKG/usr/sbin/gconfpkg
}