wok-6.x annotate lightdm-gtk3-greeter/receipt @ rev 16555

linux: update ATA config (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 30 11:54:39 2014 +0000 (2014-04-30)
parents
children dfef8de3d270
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
al@14225 18 # Rules to configure and make the package.
al@14225 19 compile_rules()
al@14225 20 {
al@14225 21 ./configure \
al@14225 22 --sysconfdir=/etc \
al@14225 23 --disable-static \
al@14225 24 --enable-introspection \
al@14225 25 $CONFIGURE_ARGS &&
al@14225 26 make &&
al@14225 27 make install
al@14225 28 }
al@14225 29
al@14225 30 # Rules to gen a SliTaz package suitable for Tazpkg.
al@14225 31 genpkg_rules()
al@14225 32 {
al@14225 33 mkdir -p $fs/usr/share/locale
al@14225 34 cp -a $install/etc $fs
al@14225 35 cp -a $install/usr/sbin $fs/usr
al@14225 36 cp -a $install/usr/share/xgreeters $fs/usr/share
al@14225 37
al@14225 38 # localization
al@14225 39 . $WOK/slitaz-i18n/stuff/locale-pack.conf
al@14225 40 for lang in $LOCALE_PACK; do
al@14225 41 langf=$install/usr/share/locale/$lang
al@14225 42 [ -d $langf ] && cp -a $langf $fs/usr/share/locale
al@14225 43 done
al@14225 44 }
al@14225 45
al@14225 46 post_install()
al@14225 47 {
al@14225 48 echo 'make lightdm-gtk3-greeter default greeter'
al@14225 49 sed -i 's|^# \(greeter-session =\)|\1 lightdm-gtk3-greeter #|' \
al@14225 50 /etc/lightdm/lightdm.conf
al@14225 51 }
al@14225 52
al@14225 53 post_remove()
al@14225 54 {
al@14225 55 echo 'back to default greeter'
al@14225 56 sed -i 's|^\(greeter-session =\).*#\(.*\)|#\1\2|' \
al@14225 57 /etc/lightdm/lightdm.conf
al@14225 58 }