wok-6.x view lightdm-gtk3-greeter/receipt @ rev 16702
Up: lxpanel (0.6.2) and sed cpu plugin to match default desktop color
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 26 20:20:32 2014 +0200 (2014-05-26) |
parents | |
children | dfef8de3d270 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lightdm-gtk3-greeter"
4 VERSION="1.5.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Reference GTK+3 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+3 lightdm"
15 BUILD_DEPENDS="gobject-introspection-dev gtk+3-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 $CONFIGURE_ARGS &&
26 make &&
27 make install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share/locale
34 cp -a $install/etc $fs
35 cp -a $install/usr/sbin $fs/usr
36 cp -a $install/usr/share/xgreeters $fs/usr/share
38 # localization
39 . $WOK/slitaz-i18n/stuff/locale-pack.conf
40 for lang in $LOCALE_PACK; do
41 langf=$install/usr/share/locale/$lang
42 [ -d $langf ] && cp -a $langf $fs/usr/share/locale
43 done
44 }
46 post_install()
47 {
48 echo 'make lightdm-gtk3-greeter default greeter'
49 sed -i 's|^# \(greeter-session =\)|\1 lightdm-gtk3-greeter #|' \
50 /etc/lightdm/lightdm.conf
51 }
53 post_remove()
54 {
55 echo 'back to default greeter'
56 sed -i 's|^\(greeter-session =\).*#\(.*\)|#\1\2|' \
57 /etc/lightdm/lightdm.conf
58 }