wok annotate slim/receipt @ rev 17153

Down disount (2.1.6) again
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 11 16:11:40 2014 +0200 (2014-09-11)
parents bc9334796734
children ad3ee9bb3a44
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@16114 13 HOST_ARCH="i486 arm"
pankso@263 14
pankso@16103 15 RELATED="slim-pam slim-theme-default" # don't forget to upgrade them too
pankso@16103 16 SUGGESTED="slim-theme-default slitaz-configs"
al@14601 17 DEPENDS="gcc-lib-base libjpeg libpng xorg-libXft xorg-libXmu"
pankso@16103 18 BUILD_DEPENDS="freetype-dev jpeg-dev libpng-dev xorg-libXft-dev xorg-libXmu-dev"
pankso@16103 19
pankso@16115 20 # Handle cross compilation
pankso@16103 21 case "$ARCH" in
pankso@16114 22 i?86)
pankso@16114 23 BUILD_DEPENDS="$BUILD_DEPENDS cmake"
pankso@16114 24 INCL=/usr/include
pankso@16114 25 LIBS=/usr/lib ;;
pankso@16114 26 arm*)
pankso@16114 27 INCL=/cross/$ARCH/sysroot/usr/include
pankso@16114 28 LIBS=/cross/$ARCH/sysroot/usr/lib ;;
pankso@16103 29 esac
pankso@9737 30
pankso@263 31 # Rules to configure and make the package.
pankso@263 32 compile_rules()
pankso@263 33 {
al@14601 34 patch -p1 < $stuff/$PACKAGE-$VERSION.patch || return 1
al@14601 35 mkdir build; cd build
al@14601 36 cmake \
al@14601 37 -DCMAKE_INSTALL_PREFIX=/usr \
pankso@16114 38 -DX11_Xmu_LIB="$LIBS/libXmu.so" \
pankso@16114 39 -DX11_Xft_INCLUDE_PATH=${INCL} \
pankso@16114 40 -DX11_Xmu_INCLUDE_PATH= ${INCL} \
al@14601 41 .. &&
al@14601 42 make &&
al@14601 43 make DESTDIR=$DESTDIR install
pankso@263 44 }
pankso@263 45
pankso@263 46 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@263 47 genpkg_rules()
pankso@263 48 {
rcx@6055 49 mkdir -p $fs/usr/share/slim
al@14601 50 cp -a $install/etc $fs
al@14601 51 cp -a $install/usr/bin $fs/usr
pascal@8974 52 cp -a $stuff/themes $fs/usr/share/slim
rcx@6055 53
pankso@2838 54 # Config file and rc script.
pascal@8974 55 cp -a $stuff/etc $fs
psychomaniak@17054 56 sed -i 's|session$|& >/tmp/X-output|g' $fs/etc/slim.conf
pankso@1090 57 chown -R root.root $fs
pankso@263 58
al@16779 59 # slim-theme manager & default strings
al@14601 60 install -m755 $stuff/slim-theme $fs/usr/bin/slim-theme
al@16779 61 install -m644 $stuff/strings $fs/usr/share/slim/strings
pankso@2053 62 }
pankso@2053 63
pascal@1062 64 post_install()
pascal@1062 65 {
pascal@1784 66 local USER
pascal@1784 67 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
pascal@1784 68 [ -n "$USER" ] &&
pascal@1784 69 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf
al@16779 70
al@16779 71 slim-theme -s base
pascal@1062 72 }