wok view lightdm-gtk2-greeter/receipt @ rev 17893
Up tazinst-gui (49)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 02 17:24:44 2015 +0200 (2015-04-02) |
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 }