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