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