wok-undigest annotate windowmaker/receipt @ rev 1213

windowmaker: update build
author Paul Issott <paul@slitaz.org>
date Sat Mar 10 19:57:40 2018 +0000 (2018-03-10)
parents 5e3db53d36fb
children 326496a6389f
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@1213 9 SOURCE="WindowMaker"
paul@1212 10 WEB_SITE="http://windowmaker.org"
paul@1213 11 TARBALL="$SOURCE-$VERSION.tar.gz"
paul@1212 12 WGET_URL="$WEB_SITE/pub/source/release/$TARBALL"
paul@1212 13 TAGS="window-manager"
paul@1212 14
paul@1212 15 LOCALES="en en_US de es fr it pt ru zh_CN zh_TW"
paul@1212 16
paul@1212 17 SUGGESTED="xfe aterm"
paul@1212 18 DEPENDS="xorg-libXinerama xorg-libXrandr xorg-libXmu libpng xorg-libXpm xorg-libXft tiff jpeg libjpeg giflib libexif"
paul@1212 19 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 20
paul@1212 21 # Rules to configure and make the package.
paul@1212 22 compile_rules()
paul@1212 23 {
paul@1212 24 ./configure $CONFIGURE_ARGS && make && make install
paul@1212 25 }
paul@1212 26
paul@1212 27 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@1212 28 genpkg_rules()
paul@1212 29 {
paul@1212 30 cp -a $install/* $fs
paul@1212 31 }
paul@1212 32
paul@1212 33 post_install()
paul@1212 34 {
paul@1212 35 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
paul@1212 36 # Adding WM to SLIM available sessions.
paul@1212 37 if ! echo "$res" | grep -q wmaker; then
paul@1212 38 echo -n "Adding wmaker to /etc/slim.conf..."
paul@1212 39 sed -i "s/^sessions.*/sessions ${res},wmaker/" "$1/etc/slim.conf"
paul@1212 40 status
paul@1212 41 fi
paul@1212 42 }
paul@1212 43
paul@1212 44 post_remove()
paul@1212 45 {
paul@1212 46 # Remove WM from SLIM available sessions.
paul@1212 47 if grep -q wmaker "$1/etc/slim.conf"; then
paul@1212 48 sed -i s/,wmaker// "$1/etc/slim.conf"
paul@1212 49 fi
paul@1212 50 }
paul@1212 51