wok-current view jwm/receipt @ rev 17554
Up mdadm (3.3.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 31 18:49:47 2015 +0100 (2015-01-31) |
parents | f20bb2aafa21 |
children | 1067bb7f1e24 |
line source
1 # SliTaz package receipt.
3 PACKAGE="jwm"
4 VERSION="2.2.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.xz"
10 WEB_SITE="http://www.joewing.net/programs/jwm/"
11 WGET_URL="http://www.joewing.net/programs/jwm/releases/$TARBALL"
12 TAGS="window-manager"
13 HOST_ARCH="i486 arm"
15 DEPENDS="xorg-libX11 xorg-libXft xorg-libXrender xorg-libXpm xorg-libXext \
16 xorg-libXmu xorg-libXinerama xorg-libXau xorg-libXdmcp xorg-libXt libjpeg \
17 libpng slitaz-configs-base xorg-xload xorg-xclock imlib2 hsetroot"
18 BUILD_DEPENDS="xorg-libX11-dev xorg-libXft-dev jpeg-dev libpng-dev"
20 # Handle cross compilation
21 case "$ARCH" in
22 arm)
23 DEPENDS="$DEPENDS joe lynx ytree"
24 ARCH_ARGS="--disable-nls" ;;
25 i?86)
26 DEPENDS="$DEPENDS compton nano" ;;
27 esac
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 #[ -f done.resize-backgound.u ] || patch -p1 < $stuff/resize-backgound.u
33 #touch done.resize-backgound.u
34 ./configure \
35 --prefix=/usr \
36 --mandir=/usr/share/man \
37 --sysconfdir=/etc/xdg/jwm \
38 --disable-fribidi \
39 --disable-rpath \
40 --disable-rsvg \
41 --disable-confirm \
42 $CONFIGURE_ARGS $ARCH_ARGS 2>/dev/null &&
43 make && make install
44 }
46 testsuite()
47 {
48 readelf -h $install/usr/bin/jwm
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/etc/xdg/jwm $fs/usr/share
55 cp -a $install/usr/bin $fs/usr/bin
56 # Simple and default config file.
57 cp $stuff/simple.jwmrc $fs/etc/xdg/jwm/simple.jwmrc
58 cp $stuff/slitaz.jwmrc $fs/etc/xdg/jwm/system.jwmrc
59 cp -r $stuff/xsessions $fs/usr/share
60 }
62 post_install()
63 {
64 if [ -d "$1/etc/jwm" ]; then
65 echo "Removing old system wide configs: $1/etc/jwm"
66 rm -rf $1/etc/jwm
67 fi
68 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
69 # Adding WM to SLIM available sessions.
70 if ! echo "$res" | grep -q $PACKAGE; then
71 echo -n "Adding $PACKAGE to /etc/slim.conf..."
72 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf
73 status
74 fi
75 }
77 post_remove()
78 {
79 # Remove WM from SLIM available sessions.
80 if grep -q $PACKAGE $1/etc/slim.conf; then
81 sed -i s/,$PACKAGE// $1/etc/slim.conf
82 fi
83 }