wok-next diff lightdm-gtk3-greeter/receipt @ rev 14944
Up: edbus-dev (1.7.8)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Thu Aug 08 19:15:49 2013 +0200 (2013-08-08) |
parents | |
children | dfef8de3d270 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/lightdm-gtk3-greeter/receipt Thu Aug 08 19:15:49 2013 +0200 1.3 @@ -0,0 +1,58 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="lightdm-gtk3-greeter" 1.7 +VERSION="1.5.1" 1.8 +CATEGORY="x-window" 1.9 +SHORT_DESC="Reference GTK+3 greeter for LightDM" 1.10 +MAINTAINER="al.bobylev@gmail.com" 1.11 +LICENSE="GPL3" 1.12 +WEB_SITE="https://launchpad.net/lightdm-gtk-greeter" 1.13 +SOURCE="lightdm-gtk-greeter" 1.14 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.15 +WGET_URL="https://launchpad.net/$SOURCE/1.6/$VERSION/+download/$TARBALL" 1.16 + 1.17 +DEPENDS="gtk+3 lightdm" 1.18 +BUILD_DEPENDS="gobject-introspection-dev gtk+3-dev lightdm-dev libxklavier-dev \ 1.19 +wget" 1.20 + 1.21 +# Rules to configure and make the package. 1.22 +compile_rules() 1.23 +{ 1.24 + ./configure \ 1.25 + --sysconfdir=/etc \ 1.26 + --disable-static \ 1.27 + --enable-introspection \ 1.28 + $CONFIGURE_ARGS && 1.29 + make && 1.30 + make install 1.31 +} 1.32 + 1.33 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.34 +genpkg_rules() 1.35 +{ 1.36 + mkdir -p $fs/usr/share/locale 1.37 + cp -a $install/etc $fs 1.38 + cp -a $install/usr/sbin $fs/usr 1.39 + cp -a $install/usr/share/xgreeters $fs/usr/share 1.40 + 1.41 + # localization 1.42 + . $WOK/slitaz-i18n/stuff/locale-pack.conf 1.43 + for lang in $LOCALE_PACK; do 1.44 + langf=$install/usr/share/locale/$lang 1.45 + [ -d $langf ] && cp -a $langf $fs/usr/share/locale 1.46 + done 1.47 +} 1.48 + 1.49 +post_install() 1.50 +{ 1.51 + echo 'make lightdm-gtk3-greeter default greeter' 1.52 + sed -i 's|^# \(greeter-session =\)|\1 lightdm-gtk3-greeter #|' \ 1.53 + /etc/lightdm/lightdm.conf 1.54 +} 1.55 + 1.56 +post_remove() 1.57 +{ 1.58 + echo 'back to default greeter' 1.59 + sed -i 's|^\(greeter-session =\).*#\(.*\)|#\1\2|' \ 1.60 + /etc/lightdm/lightdm.conf 1.61 +}