wok view jwm/receipt @ rev 15302
gutenprint: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 27 12:35:42 2013 +0000 (2013-09-27) |
parents | 612c43caa4ec |
children | 410490fd06f0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="jwm"
4 VERSION="2.1.0"
5 CATEGORY="x-window"
6 SHORT_DESC="JWM is a light Window Manager for the X window system."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.joewing.net/programs/jwm/"
11 WGET_URL="http://www.joewing.net/programs/jwm/releases/$TARBALL"
12 TAGS="wm window-manager"
14 DEPENDS="xorg-libX11 xorg-libXft xorg-libXrender xorg-libXpm xorg-libXext \
15 xorg-libXmu xorg-libXinerama xorg-libXau xorg-libXdmcp xorg-libXt libjpeg \
16 libpng slitaz-configs-base xorg-xload xorg-xclock nano"
17 BUILD_DEPENDS="xorg-dev xorg-libXft-dev jpeg-dev libpng-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 [ -f done.resize-backgound.u ] || patch -p1 < $stuff/resize-backgound.u
24 touch done.resize-backgound.u
25 ./configure \
26 --prefix=/usr \
27 --mandir=/usr/share/man \
28 --sysconfdir=/etc/xdg/jwm \
29 --disable-fribidi \
30 $CONFIGURE_ARGS &&
31 make
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin $fs/etc/xdg/jwm $fs/usr/share
38 cp -a $src/src/jwm $fs/usr/bin
39 # Simple and default config file.
40 cp $stuff/simple.jwmrc $fs/etc/xdg/jwm/simple.jwmrc
41 cp $stuff/slitaz.jwmrc $fs/etc/xdg/jwm/system.jwmrc
42 cp -r $stuff/xsessions $fs/usr/share
43 }
45 post_install()
46 {
47 if [ -d "$1/etc/jwm" ]; then
48 echo "Removing old system wide configs: $1/etc/jwm"
49 rm -rf $1/etc/jwm
50 fi
51 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
52 # Adding WM to SLIM available sessions.
53 if ! echo "$res" | grep -q $PACKAGE; then
54 echo -n "Adding $PACKAGE to /etc/slim.conf..."
55 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf
56 status
57 fi
58 }
60 post_remove()
61 {
62 # Remove WM from SLIM available sessions.
63 if grep -q $PACKAGE $1/etc/slim.conf; then
64 sed -i s/,$PACKAGE// $1/etc/slim.conf
65 fi
66 }