wok view dwm/receipt @ rev 19421

Up gpgme-dev (1.6.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 30 19:02:04 2016 +0200 (2016-09-30)
parents 5d53e8ccbc8d
children 970c5ec9a60a
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 -n "Adding $PACKAGE to /etc/slim.conf..."
49 sed -i "s/^sessions.*/sessions ${res},dwm/" /etc/slim.conf
50 status
51 fi
52 }
54 post_remove()
55 {
56 # Remove karmen from SLIM available sessions.
57 if grep -q dwm "$1/etc/slim.conf"; then
58 sed -i s/,dwm// "$1/etc/slim.conf"
59 fi
60 }