wok-6.x annotate slim/receipt @ rev 20100

Up slitaz-tools (1024)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 07 23:08:11 2017 +0200 (2017-10-07)
parents 19477586b01f
children 8dd8bab3f0ca
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"
al@17992 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"
al@19685 14 COOKOPTS="!pngquant op8"
pankso@263 15
pankso@16103 16 RELATED="slim-pam slim-theme-default" # don't forget to upgrade them too
pankso@16103 17 SUGGESTED="slim-theme-default slitaz-configs"
al@14601 18 DEPENDS="gcc-lib-base libjpeg libpng xorg-libXft xorg-libXmu"
pankso@16103 19 BUILD_DEPENDS="freetype-dev jpeg-dev libpng-dev xorg-libXft-dev xorg-libXmu-dev"
pankso@16103 20
pankso@16115 21 # Handle cross compilation
pankso@16103 22 case "$ARCH" in
pankso@16114 23 i?86)
pankso@16114 24 BUILD_DEPENDS="$BUILD_DEPENDS cmake"
pankso@16114 25 INCL=/usr/include
pankso@16114 26 LIBS=/usr/lib ;;
pankso@16114 27 arm*)
pankso@16114 28 INCL=/cross/$ARCH/sysroot/usr/include
pankso@16114 29 LIBS=/cross/$ARCH/sysroot/usr/lib ;;
pankso@16103 30 esac
pankso@9737 31
pankso@263 32 # Rules to configure and make the package.
pankso@263 33 compile_rules()
pankso@263 34 {
al@14601 35 patch -p1 < $stuff/$PACKAGE-$VERSION.patch || return 1
al@14601 36 mkdir build; cd build
al@14601 37 cmake \
al@14601 38 -DCMAKE_INSTALL_PREFIX=/usr \
pankso@16114 39 -DX11_Xmu_LIB="$LIBS/libXmu.so" \
pankso@16114 40 -DX11_Xft_INCLUDE_PATH=${INCL} \
pankso@16114 41 -DX11_Xmu_INCLUDE_PATH= ${INCL} \
al@14601 42 .. &&
al@14601 43 make &&
al@14601 44 make DESTDIR=$DESTDIR install
pankso@263 45 }
pankso@263 46
pankso@263 47 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@263 48 genpkg_rules()
pankso@263 49 {
rcx@6055 50 mkdir -p $fs/usr/share/slim
al@14601 51 cp -a $install/etc $fs
al@14601 52 cp -a $install/usr/bin $fs/usr
pascal@8974 53 cp -a $stuff/themes $fs/usr/share/slim
rcx@6055 54
pankso@2838 55 # Config file and rc script.
pascal@8974 56 cp -a $stuff/etc $fs
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@18730 67 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < "$1/etc/passwd")
pascal@1784 68 [ -n "$USER" ] &&
pascal@18730 69 sed -i s/"default_user .*"/"default_user $USER"/ "$1/etc/slim.conf"
pascal@18730 70 sed -i 's|>/tmp/X-output||' "$1/etc/slim.conf"
pascal@1062 71 }
al@19756 72
al@19756 73 testsuite() { ldd $install/usr/bin/slim; }