wok annotate slim/receipt @ rev 17895

Up gnome-commander-i18n (1.4.5)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 02 17:28:23 2015 +0200 (2015-04-02)
parents 95d1f6282a65
children c9e270dd464f
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
pankso@1090 56 chown -R root.root $fs
pankso@263 57
al@16779 58 # slim-theme manager & default strings
al@14601 59 install -m755 $stuff/slim-theme $fs/usr/bin/slim-theme
al@16779 60 install -m644 $stuff/strings $fs/usr/share/slim/strings
pankso@2053 61 }
pankso@2053 62
pascal@1062 63 post_install()
pascal@1062 64 {
pascal@1784 65 local USER
pascal@1784 66 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
pascal@1784 67 [ -n "$USER" ] &&
pascal@1784 68 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf
psychomaniak@17173 69 sed -i 's|>/tmp/X-output||' $1/etc/slim.conf
pascal@1062 70 }