wok-current annotate slim/receipt @ rev 15567

Up: thunderbird-langpack-zh_CN (17.0.11esr)
author Dominique Corbex <domcox@slitaz.org>
date Sun Nov 24 17:37:53 2013 +0100 (2013-11-24)
parents 77143f213b9b
children 1a0b3262dccf
rev   line source
pankso@263 1 # SliTaz package receipt.
pankso@263 2
pankso@263 3 PACKAGE="slim"
al@14601 4 VERSION="1.3.5"
pankso@263 5 CATEGORY="x-window"
pankso@263 6 SHORT_DESC="Desktop-independent graphical login manager for X11."
pankso@263 7 MAINTAINER="pankso@slitaz.org"
al@14601 8 LICENSE="GPL2"
al@14601 9 WEB_SITE="http://slim.berlios.de/"
pankso@263 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@263 11 WGET_URL="http://download.berlios.de/slim/$TARBALL"
pascal@1212 12 CONFIG_FILES="/etc/slim.conf"
pankso@263 13
al@14601 14 DEPENDS="gcc-lib-base libjpeg libpng xorg-libXft xorg-libXmu"
al@14601 15 SUGGESTED="slim-theme-default slitaz-configs"
al@14601 16 BUILD_DEPENDS="cmake freetype-dev jpeg-dev libpng-dev xorg-libXft-dev \
al@14601 17 xorg-libXmu-dev"
al@14601 18 RELATED="slim-pam slim-theme-default" # don't forget to upgrade them too
pankso@9737 19
pankso@263 20 # Rules to configure and make the package.
pankso@263 21 compile_rules()
pankso@263 22 {
al@14601 23 patch -p1 < $stuff/$PACKAGE-$VERSION.patch || return 1
al@14601 24 mkdir build; cd build
al@14601 25 cmake \
al@14601 26 -DCMAKE_INSTALL_PREFIX=/usr \
al@14601 27 -DX11_Xmu_LIB=-lXmu \
al@14601 28 .. &&
al@14601 29 make &&
al@14601 30 make DESTDIR=$DESTDIR install
pankso@263 31 }
pankso@263 32
pankso@263 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@263 34 genpkg_rules()
pankso@263 35 {
rcx@6055 36 mkdir -p $fs/usr/share/slim
al@14601 37 cp -a $install/etc $fs
al@14601 38 cp -a $install/usr/bin $fs/usr
pascal@8974 39 cp -a $stuff/themes $fs/usr/share/slim
rcx@6055 40
pankso@2838 41 # Config file and rc script.
pascal@8974 42 cp -a $stuff/etc $fs
pankso@1090 43 chown -R root.root $fs
pankso@263 44
al@14601 45 # slim-theme manager
al@14601 46 install -m755 $stuff/slim-theme $fs/usr/bin/slim-theme
pankso@2053 47 }
pankso@2053 48
pascal@1062 49 post_install()
pascal@1062 50 {
pascal@1784 51 local USER
pascal@1784 52 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
pascal@1784 53 [ -n "$USER" ] &&
pascal@1784 54 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf
al@14601 55
al@14601 56 # In order to update the SLiM, we need to restart it.
al@14601 57 # We can't just "/etc/init.d/slim restart" because it momentarily interrupts
al@14601 58 # X session and the user will get a terrible console with strange letters.
al@14601 59 printf '%40s\n' | tr ' ' '='
al@14601 60 echo "In order to update the SLiM,"
al@14601 61 echo "please, reboot your system!"
pascal@1062 62 }