wok view jwm/receipt @ rev 24045

memtest,plop: tune lzma compression
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 06 12:50:46 2021 +0000 (2021-05-06)
parents e3f377fbc5f0
children ad8b9ff412d2
line source
1 # SliTaz package receipt.
3 PACKAGE="jwm"
4 VERSION="2.3.7"
5 CATEGORY="x-window"
6 TAGS="window-manager"
7 SHORT_DESC="A light Window Manager for the X window system."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://joewing.net/projects/jwm/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="${WEB_SITE}releases/$TARBALL"
15 DEPENDS="hsetroot imlib2 libjpeg libpng slitaz-configs-base \
16 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft \
17 xorg-libXinerama xorg-libXmu xorg-libXpm xorg-libXrender \
18 xorg-libXt xorg-xclock xorg-xload"
19 BUILD_DEPENDS="jpeg-dev libpng-dev xorg-libX11-dev xorg-libXft-dev"
20 HOST_ARCH="i486 arm"
22 # Handle cross compilation
23 case "$ARCH" in
24 arm)
25 DEPENDS="$DEPENDS joe lynx ytree"
26 ARCH_ARGS="--disable-nls" ;;
27 i?86)
28 DEPENDS="$DEPENDS compton nano" ;;
29 esac
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 #[ -f done.resize-backgound.u ] || patch -p1 < $stuff/resize-backgound.u
35 #touch done.resize-backgound.u
36 ./configure \
37 --prefix=/usr \
38 --mandir=/usr/share/man \
39 --sysconfdir=/etc/xdg/jwm \
40 --disable-fribidi \
41 --disable-rpath \
42 --disable-rsvg \
43 --disable-confirm \
44 $CONFIGURE_ARGS $ARCH_ARGS 2>/dev/null &&
45 make -j 1 &&
46 make install
47 }
49 testsuite()
50 {
51 readelf -h $install/usr/bin/jwm
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 mkdir -p $fs/etc/xdg/jwm
58 mkdir -p $fs/usr/share
60 cp -a $install/usr/bin $fs/usr/bin
62 # Simple and default config file.
63 cp $stuff/simple.jwmrc $fs/etc/xdg/jwm/simple.jwmrc
64 cp $stuff/slitaz.jwmrc $fs/etc/xdg/jwm/system.jwmrc
66 cp -r $stuff/xsessions $fs/usr/share
67 }
69 post_install()
70 {
71 if [ -d "$1/etc/jwm" ]; then
72 echo "Removing old system wide configs: /etc/jwm"
73 rm -rf "$1/etc/jwm"
74 fi
76 # Adding WM to SLIM available sessions.
77 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
78 if ! echo "$res" | grep -q $PACKAGE; then
79 echo -n "Adding $PACKAGE to /etc/slim.conf..."
80 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf"
81 status
82 fi
83 true
84 }
86 post_remove()
87 {
88 # Remove WM from SLIM available sessions.
89 if grep -q $PACKAGE "$1/etc/slim.conf"; then
90 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
91 fi
92 }