wok-undigest annotate windowmaker/receipt @ rev 1212

Add windowmaker (thanks aledie)
author Paul Issott <paul@slitaz.org>
date Sat Mar 10 13:42:46 2018 +0000 (2018-03-10)
parents
children 7d6370696d8b
rev   line source
paul@1212 1 # SliTaz package receipt.
paul@1212 2
paul@1212 3 PACKAGE="windowmaker"
paul@1212 4 VERSION="0.95.8"
paul@1212 5 CATEGORY="x-window"
paul@1212 6 SHORT_DESC="An X11 window manager with a NEXTSTEP look and feel"
paul@1212 7 MAINTAINER="aledie@slitaz.org"
paul@1212 8 LICENSE="GPL2"
paul@1212 9 WEB_SITE="http://windowmaker.org"
paul@1212 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
paul@1212 11 WGET_URL="$WEB_SITE/pub/source/release/$TARBALL"
paul@1212 12 TAGS="window-manager"
paul@1212 13
paul@1212 14 LOCALES="en en_US de es fr it pt ru zh_CN zh_TW"
paul@1212 15
paul@1212 16 SUGGESTED="xfe aterm"
paul@1212 17 DEPENDS="xorg-libXinerama xorg-libXrandr xorg-libXmu libpng xorg-libXpm xorg-libXft tiff jpeg libjpeg giflib libexif"
paul@1212 18 BUILD_DEPENDS="slitaz-toolchain slitaz-dev-pkgs util-linux-uuid-dev xorg-libXinerama-dev xorg-libXrandr-dev xorg-libXmu-dev xorg-libXpm-dev xorg-libXft-dev giflib-dev libexif-dev"
paul@1212 19
paul@1212 20 # Rules to configure and make the package.
paul@1212 21 compile_rules()
paul@1212 22 {
paul@1212 23 ./configure $CONFIGURE_ARGS && make && make install
paul@1212 24 }
paul@1212 25
paul@1212 26 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@1212 27 genpkg_rules()
paul@1212 28 {
paul@1212 29 cp -a $install/* $fs
paul@1212 30 }
paul@1212 31
paul@1212 32 post_install()
paul@1212 33 {
paul@1212 34 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
paul@1212 35 # Adding WM to SLIM available sessions.
paul@1212 36 if ! echo "$res" | grep -q wmaker; then
paul@1212 37 echo -n "Adding wmaker to /etc/slim.conf..."
paul@1212 38 sed -i "s/^sessions.*/sessions ${res},wmaker/" "$1/etc/slim.conf"
paul@1212 39 status
paul@1212 40 fi
paul@1212 41 }
paul@1212 42
paul@1212 43 post_remove()
paul@1212 44 {
paul@1212 45 # Remove WM from SLIM available sessions.
paul@1212 46 if grep -q wmaker "$1/etc/slim.conf"; then
paul@1212 47 sed -i s/,wmaker// "$1/etc/slim.conf"
paul@1212 48 fi
paul@1212 49 }
paul@1212 50