wok-next annotate dwm/receipt @ rev 20068
Up libcanberra (gtk2 and gtk3 support), vala (0.36.4), dconf (0.26.0), gucharmap3 (10.0.0), pycairo (1.15.3), pygobject3 (3.26.0), libgtop. Add dconf-editor, gtksourceview3.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 24 17:49:57 2017 +0300 (2017-10-24) |
parents | 5d53e8ccbc8d |
children | c4e53a39395a |
rev | line source |
---|---|
pankso@2378 | 1 # SliTaz package receipt. |
pankso@2378 | 2 |
pankso@2378 | 3 PACKAGE="dwm" |
erjo@14449 | 4 VERSION="6.0" |
pankso@2378 | 5 CATEGORY="x-window" |
pankso@2378 | 6 SHORT_DESC="Very light dynamic window manager for X." |
pankso@2378 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15202 | 8 LICENSE="MIT" |
pankso@2378 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@16103 | 10 WEB_SITE="http://dwm.suckless.org/" |
pankso@9766 | 11 WGET_URL="http://dl.suckless.org/dwm/$TARBALL" |
al@17501 | 12 TAGS="window-manager" |
pankso@16103 | 13 HOST_ARCH="i486 arm" |
pankso@9766 | 14 |
pankso@2378 | 15 DEPENDS="xorg-libX11 xorg-xsetroot" |
pankso@9766 | 16 BUILD_DEPENDS="xorg-libX11-dev xorg-xproto xorg-xineramaproto \ |
pankso@9766 | 17 xorg-libXinerama-dev" |
pankso@2378 | 18 |
pankso@2378 | 19 # Rules to configure and make the package. |
pankso@2378 | 20 compile_rules() |
pankso@2378 | 21 { |
pankso@16103 | 22 # From blue to grey and have lighter grey |
pankso@16103 | 23 sed -i s/'#0066ff'/'#222222'/g config.def.h |
pankso@2378 | 24 sed -i s/'#cccccc'/'#f1efeb'/g config.def.h |
pankso@2378 | 25 # 6 tag-mask |
pankso@2378 | 26 sed -i s/', "7", "8", "9"'// config.def.h |
pankso@2378 | 27 # Firefox on current tag-mask |
pankso@2378 | 28 sed -i s/'1 << 8,'/'0, '/ config.def.h |
pankso@2378 | 29 # [Shift]+[Alt]+[Enter] |
pankso@2378 | 30 sed -i s/uxterm/xterm/ config.def.h |
pankso@16103 | 31 make CC=${HOST_SYSTEM}-gcc |
pankso@2378 | 32 } |
pankso@2378 | 33 |
pankso@2378 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2378 | 35 genpkg_rules() |
pankso@2378 | 36 { |
pankso@2378 | 37 mkdir -p $fs/usr/bin |
pankso@2378 | 38 cp -a $src/dwm $fs/usr/bin |
pankso@9766 | 39 cp -a $stuff/dwm-session $fs/usr/bin |
pankso@2378 | 40 chown 0.0 $fs/usr/bin/* |
pankso@2378 | 41 } |
pankso@2378 | 42 |
pankso@2378 | 43 post_install() |
pankso@2378 | 44 { |
pascal@18730 | 45 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) |
pankso@2378 | 46 # Adding WM to SLIM available sessions. |
pankso@2378 | 47 if ! echo "$res" | grep -q $PACKAGE; then |
pankso@2378 | 48 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pankso@2378 | 49 sed -i "s/^sessions.*/sessions ${res},dwm/" /etc/slim.conf |
pankso@2378 | 50 status |
pankso@2378 | 51 fi |
pankso@2378 | 52 } |
pankso@2378 | 53 |
pankso@2378 | 54 post_remove() |
pankso@2378 | 55 { |
pankso@2378 | 56 # Remove karmen from SLIM available sessions. |
pascal@18730 | 57 if grep -q dwm "$1/etc/slim.conf"; then |
pascal@18730 | 58 sed -i s/,dwm// "$1/etc/slim.conf" |
pankso@2378 | 59 fi |
pankso@2378 | 60 } |