wok-6.x view dwm/receipt @ rev 23899

busybox: add crontabs in CONFIG_FILES
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 28 08:34:55 2020 +0000 (2020-07-28)
parents 9e01bc6321ea
children bfabe25c21ff
line source
1 # SliTaz package receipt.
3 PACKAGE="dwm"
4 VERSION="6.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Very light dynamic window manager for X."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://dwm.suckless.org/"
11 WGET_URL="http://dl.suckless.org/dwm/$TARBALL"
12 TAGS="window-manager"
13 HOST_ARCH="i486 arm"
15 DEPENDS="xorg-libX11 xorg-xsetroot"
16 BUILD_DEPENDS="xorg-libX11-dev xorg-xproto xorg-xineramaproto \
17 xorg-libXinerama-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # From blue to grey and have lighter grey
23 sed -i s/'#0066ff'/'#222222'/g config.def.h
24 sed -i s/'#cccccc'/'#f1efeb'/g config.def.h
25 # 6 tag-mask
26 sed -i s/', "7", "8", "9"'// config.def.h
27 # Firefox on current tag-mask
28 sed -i s/'1 << 8,'/'0, '/ config.def.h
29 # [Shift]+[Alt]+[Enter]
30 sed -i s/uxterm/xterm/ config.def.h
31 make CC=${HOST_SYSTEM}-gcc
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin
38 cp -a $src/dwm $fs/usr/bin
39 cp -a $stuff/dwm-session $fs/usr/bin
40 chown 0.0 $fs/usr/bin/*
41 }
43 post_install()
44 {
45 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
46 # Adding WM to SLIM available sessions.
47 if ! echo "$res" | grep -q $PACKAGE; then
48 echo
49 echo -n "Adding $PACKAGE to /etc/slim.conf..."
50 sed -i "s/^sessions.*/sessions ${res},dwm/" /etc/slim.conf
51 status
52 fi
53 }
55 post_remove()
56 {
57 # Remove karmen from SLIM available sessions.
58 if grep -q dwm "$1/etc/slim.conf"; then
59 sed -i s/,dwm// "$1/etc/slim.conf"
60 fi
61 }