wok diff lightdm-gtk2-greeter/receipt @ rev 14605

Up: youtube-dl to 2013.05.23.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri May 31 19:59:16 2013 +0000 (2013-05-31)
parents
children dfef8de3d270
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lightdm-gtk2-greeter/receipt	Fri May 31 19:59:16 2013 +0000
     1.3 @@ -0,0 +1,59 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="lightdm-gtk2-greeter"
     1.7 +VERSION="1.5.1"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="Reference GTK+ 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+ lightdm"
    1.18 +BUILD_DEPENDS="gobject-introspection-dev gtk+-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 +		--with-gtk2 \
    1.29 +		$CONFIGURE_ARGS &&
    1.30 +	make &&
    1.31 +	make install
    1.32 +}
    1.33 +
    1.34 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.35 +genpkg_rules()
    1.36 +{
    1.37 +	mkdir -p $fs/usr/share/locale
    1.38 +	cp -a $install/etc $fs
    1.39 +	cp -a $install/usr/sbin $fs/usr
    1.40 +	cp -a $install/usr/share/xgreeters $fs/usr/share
    1.41 +
    1.42 +	# localization
    1.43 +	. $WOK/slitaz-i18n/stuff/locale-pack.conf
    1.44 +	for lang in $LOCALE_PACK; do
    1.45 +		langf=$install/usr/share/locale/$lang
    1.46 +		[ -d $langf ] && cp -a $langf $fs/usr/share/locale
    1.47 +	done
    1.48 +}
    1.49 +
    1.50 +post_install()
    1.51 +{
    1.52 +	echo 'make lightdm-gtk2-greeter default greeter'
    1.53 +	sed -i 's|^# \(greeter-session =\)|\1 lightdm-gtk2-greeter #|' \
    1.54 +		/etc/lightdm/lightdm.conf
    1.55 +}
    1.56 +
    1.57 +post_remove()
    1.58 +{
    1.59 +	echo 'back to default greeter'
    1.60 +	sed -i 's|^\(greeter-session =\).*#\(.*\)|#\1\2|' \
    1.61 +		/etc/lightdm/lightdm.conf
    1.62 +}