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