wok-6.x annotate lightdm-gtk3-greeter/receipt @ rev 24951
nagios-plugins: removed patch
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 23 10:41:57 2022 +0100 (2022-04-23) |
parents | 9e01bc6321ea |
children |
rev | line source |
---|---|
al@14225 | 1 # SliTaz package receipt. |
al@14225 | 2 |
al@14225 | 3 PACKAGE="lightdm-gtk3-greeter" |
al@14225 | 4 VERSION="1.5.1" |
al@14225 | 5 CATEGORY="x-window" |
al@14225 | 6 SHORT_DESC="Reference GTK+3 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 SOURCE="lightdm-gtk-greeter" |
al@14225 | 11 TARBALL="$SOURCE-$VERSION.tar.gz" |
al@14225 | 12 WGET_URL="https://launchpad.net/$SOURCE/1.6/$VERSION/+download/$TARBALL" |
al@14225 | 13 |
al@14225 | 14 DEPENDS="gtk+3 lightdm" |
al@14225 | 15 BUILD_DEPENDS="gobject-introspection-dev gtk+3-dev lightdm-dev libxklavier-dev \ |
al@14225 | 16 wget" |
al@14225 | 17 |
pascal@24434 | 18 # What is the latest version available today? |
pascal@24434 | 19 current_version() |
pascal@24434 | 20 { |
pascal@24434 | 21 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24434 | 22 sed '/Latest version is/!d;s|.*is ||' |
pascal@24434 | 23 } |
pascal@24434 | 24 |
al@14225 | 25 # Rules to configure and make the package. |
al@14225 | 26 compile_rules() |
al@14225 | 27 { |
al@14225 | 28 ./configure \ |
al@14225 | 29 --sysconfdir=/etc \ |
al@14225 | 30 --disable-static \ |
al@14225 | 31 --enable-introspection \ |
al@14225 | 32 $CONFIGURE_ARGS && |
al@14225 | 33 make && |
al@14225 | 34 make install |
al@14225 | 35 } |
al@14225 | 36 |
al@14225 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@14225 | 38 genpkg_rules() |
al@14225 | 39 { |
al@14225 | 40 mkdir -p $fs/usr/share/locale |
al@14225 | 41 cp -a $install/etc $fs |
al@14225 | 42 cp -a $install/usr/sbin $fs/usr |
al@14225 | 43 cp -a $install/usr/share/xgreeters $fs/usr/share |
al@14225 | 44 |
al@14225 | 45 # localization |
al@14225 | 46 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
al@14225 | 47 for lang in $LOCALE_PACK; do |
al@14225 | 48 langf=$install/usr/share/locale/$lang |
al@14225 | 49 [ -d $langf ] && cp -a $langf $fs/usr/share/locale |
al@14225 | 50 done |
al@14225 | 51 } |
al@14225 | 52 |
al@14225 | 53 post_install() |
al@14225 | 54 { |
al@14225 | 55 echo 'make lightdm-gtk3-greeter default greeter' |
al@14225 | 56 sed -i 's|^# \(greeter-session =\)|\1 lightdm-gtk3-greeter #|' \ |
pascal@18730 | 57 "$1/etc/lightdm/lightdm.conf" |
al@14225 | 58 } |
al@14225 | 59 |
al@14225 | 60 post_remove() |
al@14225 | 61 { |
al@14225 | 62 echo 'back to default greeter' |
al@14225 | 63 sed -i 's|^\(greeter-session =\).*#\(.*\)|#\1\2|' \ |
pascal@18730 | 64 "$1/etc/lightdm/lightdm.conf" |
al@14225 | 65 } |