wok-current annotate slim/receipt @ rev 14473

gstreamer: update deps+bdeps
author Dominique Corbex <domcox@slitaz.org>
date Thu May 02 22:34:01 2013 +0200 (2013-05-02)
parents 73641efed1cc
children d0948455b365
rev   line source
pankso@263 1 # SliTaz package receipt.
pankso@263 2
pankso@263 3 PACKAGE="slim"
pankso@13364 4 VERSION="1.3.3" # 1.3.4
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"
pankso@2838 8 SUGGESTED="slim-theme-default slitaz-configs"
pankso@263 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@263 10 WEB_SITE="http://slim.berlios.de"
pankso@263 11 WGET_URL="http://download.berlios.de/slim/$TARBALL"
pascal@1212 12 CONFIG_FILES="/etc/slim.conf"
pankso@263 13
pankso@12481 14 DEPENDS="glibc-base gcc-lib-base expat fontconfig freetype util-linux-uuid \
pankso@13364 15 zlib jpeg libpng xorg-libXft xorg-libXmu"
pankso@13364 16 BUILD_DEPENDS="xorg-libXft-dev xorg-libXmu-dev jpeg-dev libpng-dev cmake"
pankso@9737 17
pankso@263 18 # Rules to configure and make the package.
pankso@263 19 compile_rules()
pankso@263 20 {
pankso@263 21 cd $src
pankso@13364 22 #patch -p1 < $stuff/NoPwdForCmd.patch || return 1
pankso@13364 23 cmake -DCMAKE_INSTALL_PREFIX=/usr . &&
pankso@13364 24 make && make DESTDIR=$DESTDIR install
pankso@263 25 }
pankso@263 26
pankso@263 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@263 28 genpkg_rules()
pankso@263 29 {
rcx@6055 30 mkdir -p $fs/usr/share/slim
pascal@8974 31 cp -a $stuff/themes $fs/usr/share/slim
pankso@13364 32 cp -a $install/usr/bin $fs/usr
rcx@6055 33
pankso@2838 34 # Config file and rc script.
pascal@8974 35 cp -a $stuff/etc $fs
pankso@1090 36 chown -R root.root $fs
pankso@263 37 }
pankso@263 38
pankso@3000 39 pre_install()
pankso@2053 40 {
pankso@2053 41 local root
pankso@2053 42 root=$1
pankso@2053 43 # Backup config file.
pankso@2053 44 if [ -f $root/etc/slim.conf ]; then
pankso@2053 45 cp $root/etc/slim.conf $root/etc/slim.conf.bak
pankso@2053 46 fi
pankso@2053 47 }
pankso@2053 48
pascal@1062 49 post_install()
pascal@1062 50 {
pankso@2053 51 local root
pankso@2053 52 root=$1
pankso@2053 53 # Restore original config.
pankso@2053 54 if [ -f $root/etc/slim.conf.bak ]; then
pankso@2053 55 mv -f $root/etc/slim.conf.bak $root/etc/slim.conf
pankso@2053 56 fi
pascal@1784 57 local USER
pascal@1784 58 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
pascal@1784 59 [ -n "$USER" ] &&
pascal@1784 60 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf
pascal@1062 61 }