wok-next annotate lightdm-gtk2-greeter/receipt @ rev 19864

slitaz-base-files: fix typo; up slitaz-boot-scripts (443)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Sep 12 02:09:10 2017 +0300 (2017-09-12)
parents dfef8de3d270
children 27bae9732b8d
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
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 --with-gtk2 \
al@14225 26 $CONFIGURE_ARGS &&
al@14225 27 make &&
al@14225 28 make install
al@14225 29 }
al@14225 30
al@14225 31 # Rules to gen a SliTaz package suitable for Tazpkg.
al@14225 32 genpkg_rules()
al@14225 33 {
al@14225 34 mkdir -p $fs/usr/share/locale
al@14225 35 cp -a $install/etc $fs
al@14225 36 cp -a $install/usr/sbin $fs/usr
al@14225 37 cp -a $install/usr/share/xgreeters $fs/usr/share
al@14225 38
al@14225 39 # localization
al@14225 40 . $WOK/slitaz-i18n/stuff/locale-pack.conf
al@14225 41 for lang in $LOCALE_PACK; do
al@14225 42 langf=$install/usr/share/locale/$lang
al@14225 43 [ -d $langf ] && cp -a $langf $fs/usr/share/locale
al@14225 44 done
al@14225 45 }
al@14225 46
al@14225 47 post_install()
al@14225 48 {
al@14225 49 echo 'make lightdm-gtk2-greeter default greeter'
al@14225 50 sed -i 's|^# \(greeter-session =\)|\1 lightdm-gtk2-greeter #|' \
pascal@18730 51 "$1/etc/lightdm/lightdm.conf"
al@14225 52 }
al@14225 53
al@14225 54 post_remove()
al@14225 55 {
al@14225 56 echo 'back to default greeter'
al@14225 57 sed -i 's|^\(greeter-session =\).*#\(.*\)|#\1\2|' \
pascal@18730 58 "$1/etc/lightdm/lightdm.conf"
al@14225 59 }