wok-next view lightdm-gtk2-greeter/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | 757d032c55c7 |
children | df20b2110f7e |
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"
11 TARBALL="lightdm-gtk-greeter-$VERSION.tar.gz"
12 WGET_URL="https://launchpad.net/lightdm-gtk-greeter/1.6/$VERSION/+download/$TARBALL"
14 BUILD_DEPENDS="gobject-introspection-dev gtk+-dev gtk+3-dev lightdm-dev \
15 libxklavier-dev intltool"
16 SPLIT="lightdm-gtk3-greeter:gtk3"
18 compile_rules() {
19 case $SET in
20 '') SET_ARGS='--with-gtk2';;
21 gtk3) SET_ARGS='';;
22 esac
24 ./configure \
25 --disable-static \
26 --enable-introspection \
27 $SET_ARGS \
28 $CONFIGURE_ARGS &&
29 fix libtool &&
30 make &&
31 make install
32 }
34 genpkg_rules() {
35 case $PACKAGE in
36 lightdm-gtk2-greeter)
37 mkdir -p $fs/usr/share/locale
38 cp -a $install/etc $fs
39 cp -a $install/usr/sbin $fs/usr
40 cp -a $install/usr/share/xgreeters $fs/usr/share
42 # localization
43 . $WOK/slitaz-i18n/stuff/locale-pack.conf
44 for lang in $LOCALE_PACK; do
45 langf=$install/usr/share/locale/$lang
46 [ -d $langf ] && cp -a $langf $fs/usr/share/locale
47 done
48 CAT="x-window|GTK+2"
49 DEPENDS="gtk+ lightdm"
50 ;;
51 lightdm-gtk3-greeter)
52 mkdir -p $fs/usr/share/locale
53 cp -a $install/etc $fs
54 cp -a $install/usr/sbin $fs/usr
55 cp -a $install/usr/share/xgreeters $fs/usr/share
57 # localization
58 . $WOK/slitaz-i18n/stuff/locale-pack.conf
59 for lang in $LOCALE_PACK; do
60 langf=$install/usr/share/locale/$lang
61 [ -d $langf ] && cp -a $langf $fs/usr/share/locale
62 done
63 CAT="x-window|GTK+3"
64 DEPENDS="gtk+3 lightdm"
65 ;;
66 esac
67 }
69 post_install_lightdm_gtk2_greeter() {
70 echo 'make lightdm-gtk2-greeter default greeter'
71 sed -i 's|^# \(greeter-session =\)|\1 lightdm-gtk2-greeter #|' \
72 "$1/etc/lightdm/lightdm.conf"
73 }
75 post_remove_lightdm_gtk2_greeter() {
76 echo 'back to default greeter'
77 sed -i 's|^\(greeter-session =\).*#\(.*\)|#\1\2|' \
78 "$1/etc/lightdm/lightdm.conf"
79 }
81 post_install_lightdm_gtk3_greeter() {
82 echo 'make lightdm-gtk3-greeter default greeter'
83 sed -i 's|^# \(greeter-session =\)|\1 lightdm-gtk3-greeter #|' \
84 "$1/etc/lightdm/lightdm.conf"
85 }
87 post_remove_lightdm_gtk3_greeter() {
88 echo 'back to default greeter'
89 sed -i 's|^\(greeter-session =\).*#\(.*\)|#\1\2|' \
90 "$1/etc/lightdm/lightdm.conf"
91 }