wok-current annotate slim/receipt @ rev 16103
ARM: add dwm, dmenu, mpc, nmpc
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Mar 18 22:35:00 2014 +0100 (2014-03-18) |
parents | d0948455b365 |
children | ce28c89fc62b |
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@16103 | 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@16103 | 20 case "$ARCH" in |
pankso@16103 | 21 i?86) BUILD_DEPENDS="$BUILD_DEPENDS cmake" ;; |
pankso@16103 | 22 esac |
pankso@9737 | 23 |
pankso@263 | 24 # Rules to configure and make the package. |
pankso@263 | 25 compile_rules() |
pankso@263 | 26 { |
al@14601 | 27 patch -p1 < $stuff/$PACKAGE-$VERSION.patch || return 1 |
al@14601 | 28 mkdir build; cd build |
al@14601 | 29 cmake \ |
al@14601 | 30 -DCMAKE_INSTALL_PREFIX=/usr \ |
al@14601 | 31 -DX11_Xmu_LIB=-lXmu \ |
al@14601 | 32 .. && |
al@14601 | 33 make && |
al@14601 | 34 make DESTDIR=$DESTDIR install |
pankso@263 | 35 } |
pankso@263 | 36 |
pankso@263 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@263 | 38 genpkg_rules() |
pankso@263 | 39 { |
rcx@6055 | 40 mkdir -p $fs/usr/share/slim |
al@14601 | 41 cp -a $install/etc $fs |
al@14601 | 42 cp -a $install/usr/bin $fs/usr |
pascal@8974 | 43 cp -a $stuff/themes $fs/usr/share/slim |
rcx@6055 | 44 |
pankso@2838 | 45 # Config file and rc script. |
pascal@8974 | 46 cp -a $stuff/etc $fs |
pankso@1090 | 47 chown -R root.root $fs |
pankso@263 | 48 |
al@14601 | 49 # slim-theme manager |
al@14601 | 50 install -m755 $stuff/slim-theme $fs/usr/bin/slim-theme |
pankso@2053 | 51 } |
pankso@2053 | 52 |
pascal@1062 | 53 post_install() |
pascal@1062 | 54 { |
pascal@1784 | 55 local USER |
pascal@1784 | 56 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd) |
pascal@1784 | 57 [ -n "$USER" ] && |
pascal@1784 | 58 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf |
al@14601 | 59 |
al@14601 | 60 # In order to update the SLiM, we need to restart it. |
al@14601 | 61 # We can't just "/etc/init.d/slim restart" because it momentarily interrupts |
al@14601 | 62 # X session and the user will get a terrible console with strange letters. |
al@14601 | 63 printf '%40s\n' | tr ' ' '=' |
al@14601 | 64 echo "In order to update the SLiM," |
al@14601 | 65 echo "please, reboot your system!" |
pascal@1062 | 66 } |