wok-next annotate lightdm-gtk2-greeter/receipt @ rev 20678
Up clisp (2.50)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 15 02:59:03 2018 +0300 (2018-05-15) |
parents | 757d032c55c7 |
children | df20b2110f7e |
rev | line source |
---|---|
al@20464 | 1 # SliTaz package receipt v2. |
al@14225 | 2 |
al@14225 | 3 PACKAGE="lightdm-gtk2-greeter" |
al@14225 | 4 VERSION="1.5.1" |
al@14225 | 5 CATEGORY="x-window" |
al@14225 | 6 SHORT_DESC="Reference GTK+ greeter for LightDM" |
al@14225 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@14225 | 8 LICENSE="GPL3" |
al@14225 | 9 WEB_SITE="https://launchpad.net/lightdm-gtk-greeter" |
al@14225 | 10 |
al@20464 | 11 TARBALL="lightdm-gtk-greeter-$VERSION.tar.gz" |
al@20464 | 12 WGET_URL="https://launchpad.net/lightdm-gtk-greeter/1.6/$VERSION/+download/$TARBALL" |
al@14225 | 13 |
al@20464 | 14 BUILD_DEPENDS="gobject-introspection-dev gtk+-dev gtk+3-dev lightdm-dev \ |
al@20464 | 15 libxklavier-dev intltool" |
al@20464 | 16 SPLIT="lightdm-gtk3-greeter:gtk3" |
al@20464 | 17 |
al@20464 | 18 compile_rules() { |
al@20464 | 19 case $SET in |
al@20464 | 20 '') SET_ARGS='--with-gtk2';; |
al@20464 | 21 gtk3) SET_ARGS='';; |
al@20464 | 22 esac |
al@20464 | 23 |
al@14225 | 24 ./configure \ |
al@14225 | 25 --disable-static \ |
al@14225 | 26 --enable-introspection \ |
al@20464 | 27 $SET_ARGS \ |
al@14225 | 28 $CONFIGURE_ARGS && |
al@20595 | 29 fix libtool && |
al@14225 | 30 make && |
al@14225 | 31 make install |
al@14225 | 32 } |
al@14225 | 33 |
al@20464 | 34 genpkg_rules() { |
al@20464 | 35 case $PACKAGE in |
al@20464 | 36 lightdm-gtk2-greeter) |
al@20464 | 37 mkdir -p $fs/usr/share/locale |
al@20464 | 38 cp -a $install/etc $fs |
al@20464 | 39 cp -a $install/usr/sbin $fs/usr |
al@20464 | 40 cp -a $install/usr/share/xgreeters $fs/usr/share |
al@14225 | 41 |
al@20464 | 42 # localization |
al@20464 | 43 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
al@20464 | 44 for lang in $LOCALE_PACK; do |
al@20464 | 45 langf=$install/usr/share/locale/$lang |
al@20464 | 46 [ -d $langf ] && cp -a $langf $fs/usr/share/locale |
al@20464 | 47 done |
al@20464 | 48 CAT="x-window|GTK+2" |
al@20464 | 49 DEPENDS="gtk+ lightdm" |
al@20464 | 50 ;; |
al@20464 | 51 lightdm-gtk3-greeter) |
al@20464 | 52 mkdir -p $fs/usr/share/locale |
al@20464 | 53 cp -a $install/etc $fs |
al@20464 | 54 cp -a $install/usr/sbin $fs/usr |
al@20464 | 55 cp -a $install/usr/share/xgreeters $fs/usr/share |
al@20464 | 56 |
al@20464 | 57 # localization |
al@20464 | 58 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
al@20464 | 59 for lang in $LOCALE_PACK; do |
al@20464 | 60 langf=$install/usr/share/locale/$lang |
al@20464 | 61 [ -d $langf ] && cp -a $langf $fs/usr/share/locale |
al@20464 | 62 done |
al@20464 | 63 CAT="x-window|GTK+3" |
al@20464 | 64 DEPENDS="gtk+3 lightdm" |
al@20464 | 65 ;; |
al@20464 | 66 esac |
al@14225 | 67 } |
al@14225 | 68 |
al@20464 | 69 post_install_lightdm_gtk2_greeter() { |
al@14225 | 70 echo 'make lightdm-gtk2-greeter default greeter' |
al@14225 | 71 sed -i 's|^# \(greeter-session =\)|\1 lightdm-gtk2-greeter #|' \ |
pascal@18730 | 72 "$1/etc/lightdm/lightdm.conf" |
al@14225 | 73 } |
al@14225 | 74 |
al@20464 | 75 post_remove_lightdm_gtk2_greeter() { |
al@14225 | 76 echo 'back to default greeter' |
al@14225 | 77 sed -i 's|^\(greeter-session =\).*#\(.*\)|#\1\2|' \ |
pascal@18730 | 78 "$1/etc/lightdm/lightdm.conf" |
al@14225 | 79 } |
al@20464 | 80 |
al@20464 | 81 post_install_lightdm_gtk3_greeter() { |
al@20464 | 82 echo 'make lightdm-gtk3-greeter default greeter' |
al@20464 | 83 sed -i 's|^# \(greeter-session =\)|\1 lightdm-gtk3-greeter #|' \ |
al@20464 | 84 "$1/etc/lightdm/lightdm.conf" |
al@20464 | 85 } |
al@20464 | 86 |
al@20464 | 87 post_remove_lightdm_gtk3_greeter() { |
al@20464 | 88 echo 'back to default greeter' |
al@20464 | 89 sed -i 's|^\(greeter-session =\).*#\(.*\)|#\1\2|' \ |
al@20464 | 90 "$1/etc/lightdm/lightdm.conf" |
al@20464 | 91 } |