summaryrefslogtreecommitdiffstats
path: root/gnome/gnome-screensaver/Pkgfile
blob: e28768e6ad3c5e6f108ad45543eeb187953f9e52 (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
# Description: Remplacement de  xscreensaver conçu pour être intégré dans GNOME
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: gtk, libgnomeui, dbus, gnome-desktop, gnome-menus
# Run on: gtk,libgnomeui,dbus,gnome-desktop,gnome-menus


name=gnome-screensaver
version=2.30.0
release=1
source=(http://ftp.gnome.org/pub/gnome/sources/$name/${version%.*}/$name-$version.tar.bz2)

build() {
	cd $name-$version
	./configure --prefix=$GNOME_PREFIX \
		--libexecdir=$GNOME_PREFIX/lib/$name \
		--enable-locking \
		--disable-pam \
		--with-shadow \
		--sysconfdir=/etc \
		--disable-schemas-install
	make
	make DESTDIR=$PKG install

	sed -e 's|${DIST_BIN}|/usr/share/gnome-screensaver|' \
		data/migrate-xscreensaver-config.sh > \
		$PKG/usr/bin/migrate-xscreensaver-config
	chmod +x $PKG/usr/bin/migrate-xscreensaver-config
	install -m 0644 -o root -g root data/xscreensaver-config.xsl \
		$PKG/usr/share/$name/

	# needed for locking with shadow
	chmod u+s $PKG/usr/lib/$name/$name-dialog
}