wok-current annotate lightdm-gtk2-greeter/receipt @ rev 25712

Use symlink for libxvmc-mesa
author Stanislas Leduc <shann@slitaz.org>
date Mon Jun 10 20:42:21 2024 +0000 (5 months ago)
parents 9e01bc6321ea
children
rev   line source
al@14225 1 # SliTaz package receipt.
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 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+ lightdm"
al@14225 15 BUILD_DEPENDS="gobject-introspection-dev gtk+-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 --with-gtk2 \
al@14225 33 $CONFIGURE_ARGS &&
al@14225 34 make &&
al@14225 35 make install
al@14225 36 }
al@14225 37
al@14225 38 # Rules to gen a SliTaz package suitable for Tazpkg.
al@14225 39 genpkg_rules()
al@14225 40 {
al@14225 41 mkdir -p $fs/usr/share/locale
al@14225 42 cp -a $install/etc $fs
al@14225 43 cp -a $install/usr/sbin $fs/usr
al@14225 44 cp -a $install/usr/share/xgreeters $fs/usr/share
al@14225 45
al@14225 46 # localization
al@14225 47 . $WOK/slitaz-i18n/stuff/locale-pack.conf
al@14225 48 for lang in $LOCALE_PACK; do
al@14225 49 langf=$install/usr/share/locale/$lang
al@14225 50 [ -d $langf ] && cp -a $langf $fs/usr/share/locale
al@14225 51 done
al@14225 52 }
al@14225 53
al@14225 54 post_install()
al@14225 55 {
al@14225 56 echo 'make lightdm-gtk2-greeter default greeter'
al@14225 57 sed -i 's|^# \(greeter-session =\)|\1 lightdm-gtk2-greeter #|' \
pascal@18730 58 "$1/etc/lightdm/lightdm.conf"
al@14225 59 }
al@14225 60
al@14225 61 post_remove()
al@14225 62 {
al@14225 63 echo 'back to default greeter'
al@14225 64 sed -i 's|^\(greeter-session =\).*#\(.*\)|#\1\2|' \
pascal@18730 65 "$1/etc/lightdm/lightdm.conf"
al@14225 66 }