wok-next view slim/receipt @ rev 1090

slim: chown all file to root
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jul 16 21:47:54 2008 +0200 (2008-07-16)
parents 4ae1b641e09a
children 534023d6e005
line source
1 # SliTaz package receipt.
3 PACKAGE="slim"
4 VERSION="1.3.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Desktop-independent graphical login manager for X11."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="jpeg libpng slitaz-configs"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://slim.berlios.de"
11 WGET_URL="http://download.berlios.de/slim/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 sed -i "s|/usr/X11R6/include|/usr/include/xorg|g" Makefile
18 sed -i "s|/usr/X11R6/|/usr/|g" Makefile
19 make
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/bin $fs/usr/share/slim
26 cp -a $src/slim $fs/usr/bin
28 # Config file and rc script (theme is in slitaz-configs).
29 cp -a stuff/etc $fs
30 chown -R root.root $fs
31 }
33 post_install()
34 {
35 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
36 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
37 etc/slim.conf
38 EOT
39 }
41 repack_cleanup()
42 {
43 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
44 }