wok-next view lightdm-gtk2-greeter/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | df20b2110f7e |
children |
line source
1 # SliTaz package receipt v2.
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 REPOLOGY="lightdm-gtk-greeter"
12 TARBALL="lightdm-gtk-greeter-$VERSION.tar.gz"
13 WGET_URL="https://launchpad.net/lightdm-gtk-greeter/1.6/$VERSION/+download/$TARBALL"
15 BUILD_DEPENDS="gobject-introspection-dev gtk2-dev gtk3-dev lightdm-dev \
16 libxklavier-dev intltool"
17 SPLIT="lightdm-gtk3-greeter:gtk3"
19 compile_rules() {
20 case $SET in
21 '') SET_ARGS='--with-gtk2';;
22 gtk3) SET_ARGS='';;
23 esac
25 ./configure \
26 --disable-static \
27 --enable-introspection \
28 $SET_ARGS \
29 $CONFIGURE_ARGS &&
30 fix libtool &&
31 make &&
32 make install
33 }
35 genpkg_rules() {
36 case $PACKAGE in
37 lightdm-gtk2-greeter)
38 mkdir -p $fs/usr/share/locale
39 cp -a $install/etc $fs
40 cp -a $install/usr/sbin $fs/usr
41 cp -a $install/usr/share/xgreeters $fs/usr/share
43 # localization
44 . $WOK/slitaz-i18n/stuff/locale-pack.conf
45 for lang in $LOCALE_PACK; do
46 langf=$install/usr/share/locale/$lang
47 [ -d $langf ] && cp -a $langf $fs/usr/share/locale
48 done
49 CAT="x-window|GTK+2"
50 DEPENDS="gtk2 lightdm"
51 ;;
52 lightdm-gtk3-greeter)
53 mkdir -p $fs/usr/share/locale
54 cp -a $install/etc $fs
55 cp -a $install/usr/sbin $fs/usr
56 cp -a $install/usr/share/xgreeters $fs/usr/share
58 # localization
59 . $WOK/slitaz-i18n/stuff/locale-pack.conf
60 for lang in $LOCALE_PACK; do
61 langf=$install/usr/share/locale/$lang
62 [ -d $langf ] && cp -a $langf $fs/usr/share/locale
63 done
64 CAT="x-window|GTK+3"
65 DEPENDS="gtk3 lightdm"
66 ;;
67 esac
68 }
70 post_install_lightdm_gtk2_greeter() {
71 echo 'make lightdm-gtk2-greeter default greeter'
72 sed -i 's|^# \(greeter-session =\)|\1 lightdm-gtk2-greeter #|' \
73 "$1/etc/lightdm/lightdm.conf"
74 }
76 post_remove_lightdm_gtk2_greeter() {
77 echo 'back to default greeter'
78 sed -i 's|^\(greeter-session =\).*#\(.*\)|#\1\2|' \
79 "$1/etc/lightdm/lightdm.conf"
80 }
82 post_install_lightdm_gtk3_greeter() {
83 echo 'make lightdm-gtk3-greeter default greeter'
84 sed -i 's|^# \(greeter-session =\)|\1 lightdm-gtk3-greeter #|' \
85 "$1/etc/lightdm/lightdm.conf"
86 }
88 post_remove_lightdm_gtk3_greeter() {
89 echo 'back to default greeter'
90 sed -i 's|^\(greeter-session =\).*#\(.*\)|#\1\2|' \
91 "$1/etc/lightdm/lightdm.conf"
92 }