wok-next annotate dwm/receipt @ rev 20533

cairo-clock, grub4dos: fix CFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 27 12:50:45 2018 +0200 (2018-03-27)
parents c4e53a39395a
children f99935f1778a
rev   line source
al@20461 1 # SliTaz package receipt v2.
pankso@2378 2
pankso@2378 3 PACKAGE="dwm"
erjo@14449 4 VERSION="6.0"
pankso@2378 5 CATEGORY="x-window"
al@20461 6 SHORT_DESC="Very light dynamic window manager for X"
pankso@2378 7 MAINTAINER="pankso@slitaz.org"
pascal@15202 8 LICENSE="MIT"
al@20461 9 WEB_SITE="http://dwm.suckless.org/"
al@20461 10
pankso@2378 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@9766 12 WGET_URL="http://dl.suckless.org/dwm/$TARBALL"
pankso@9766 13
pankso@9766 14 BUILD_DEPENDS="xorg-libX11-dev xorg-xproto xorg-xineramaproto \
pankso@9766 15 xorg-libXinerama-dev"
pankso@2378 16
al@20461 17 compile_rules() {
pankso@16103 18 # From blue to grey and have lighter grey
pankso@16103 19 sed -i s/'#0066ff'/'#222222'/g config.def.h
pankso@2378 20 sed -i s/'#cccccc'/'#f1efeb'/g config.def.h
pankso@2378 21 # 6 tag-mask
pankso@2378 22 sed -i s/', "7", "8", "9"'// config.def.h
pankso@2378 23 # Firefox on current tag-mask
pankso@2378 24 sed -i s/'1 << 8,'/'0, '/ config.def.h
pankso@2378 25 # [Shift]+[Alt]+[Enter]
pankso@2378 26 sed -i s/uxterm/xterm/ config.def.h
al@20461 27 make CC=$HOST_SYSTEM-gcc || return 1
al@20461 28
al@20461 29 install -Dm755 $src/dwm $install/usr/bin/dwm
al@20461 30 install -Dm755 $stuff/dwm-session $install/usr/bin/dwm-session
pankso@2378 31 }
pankso@2378 32
al@20461 33 genpkg_rules() {
al@20461 34 copy @std
al@20461 35 DEPENDS="xorg-libX11 xorg-xsetroot"
al@20461 36 TAGS="window-manager"
pankso@2378 37 }
pankso@2378 38
al@20461 39 # Adding WM to SLIM available sessions.
al@20461 40 post_install() {
pascal@18730 41 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
pankso@2378 42 if ! echo "$res" | grep -q $PACKAGE; then
al@20461 43 action "Adding $PACKAGE to /etc/slim.conf..."
pankso@2378 44 sed -i "s/^sessions.*/sessions ${res},dwm/" /etc/slim.conf
pankso@2378 45 status
pankso@2378 46 fi
pankso@2378 47 }
pankso@2378 48
al@20461 49 # Remove dwm from SLIM available sessions.
al@20461 50 post_remove() {
pascal@18730 51 if grep -q dwm "$1/etc/slim.conf"; then
pascal@18730 52 sed -i s/,dwm// "$1/etc/slim.conf"
pankso@2378 53 fi
pankso@2378 54 }