wok-6.x view lightdm-gtk2-greeter/receipt @ rev 18296
Up linux (3.2.71)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 17 11:03:13 2015 +0200 (2015-08-17) |
parents | 66feb7f9e198 |
children | 9e01bc6321ea |
line source
1 # SliTaz package receipt.
3 PACKAGE="lightdm-gtk2-greeter"
4 VERSION="1.5.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Reference GTK+ greeter for LightDM"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="https://launchpad.net/lightdm-gtk-greeter"
10 SOURCE="lightdm-gtk-greeter"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WGET_URL="https://launchpad.net/$SOURCE/1.6/$VERSION/+download/$TARBALL"
14 DEPENDS="gtk+ lightdm"
15 BUILD_DEPENDS="gobject-introspection-dev gtk+-dev lightdm-dev libxklavier-dev \
16 wget"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./configure \
22 --sysconfdir=/etc \
23 --disable-static \
24 --enable-introspection \
25 --with-gtk2 \
26 $CONFIGURE_ARGS &&
27 make &&
28 make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/locale
35 cp -a $install/etc $fs
36 cp -a $install/usr/sbin $fs/usr
37 cp -a $install/usr/share/xgreeters $fs/usr/share
39 # localization
40 . $WOK/slitaz-i18n/stuff/locale-pack.conf
41 for lang in $LOCALE_PACK; do
42 langf=$install/usr/share/locale/$lang
43 [ -d $langf ] && cp -a $langf $fs/usr/share/locale
44 done
45 }
47 post_install()
48 {
49 echo 'make lightdm-gtk2-greeter default greeter'
50 sed -i 's|^# \(greeter-session =\)|\1 lightdm-gtk2-greeter #|' \
51 $1/etc/lightdm/lightdm.conf
52 }
54 post_remove()
55 {
56 echo 'back to default greeter'
57 sed -i 's|^\(greeter-session =\).*#\(.*\)|#\1\2|' \
58 $1/etc/lightdm/lightdm.conf
59 }