wok-next view jwm/receipt @ rev 20534
Clean default configure options when site script used.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 30 19:31:50 2018 +0300 (2018-03-30) |
parents | c4e53a39395a |
children | d6378d455338 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="jwm"
4 VERSION="2.2.0"
5 CATEGORY="x-window"
6 SHORT_DESC="JWM is a light Window Manager for the X window system"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.joewing.net/programs/jwm/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="http://www.joewing.net/programs/jwm/releases/$TARBALL"
14 BUILD_DEPENDS="xorg-libX11-dev xorg-libXft-dev jpeg-dev libpng16-dev \
15 xorg-libXext-dev gettext"
17 compile_rules() {
18 case "$ARCH" in
19 arm*) ARCH_ARGS="--disable-nls";;
20 *) ARCH_ARGS="";;
21 esac
22 #[ -f done.resize-backgound.u ] || patch -p1 < $stuff/resize-backgound.u
23 #touch done.resize-backgound.u
25 ./configure \
26 --sysconfdir=/etc/xdg/jwm \
27 --disable-fribidi \
28 --disable-rpath \
29 --disable-rsvg \
30 --disable-confirm \
31 $ARCH_ARGS \
32 $CONFIGURE_ARGS &&
33 make &&
34 make install || return 1
36 # Simple and default config file
37 install -Dm644 $stuff/simple.jwmrc $install/etc/xdg/jwm/simple.jwmrc
38 install -Dm644 $stuff/slitaz.jwmrc $install/etc/xdg/jwm/system.jwmrc
39 install -Dm644 $stuff/xsessions/jwm.desktop $install/usr/share/xsessions/jwm.desktop
40 }
42 testsuite() {
43 readelf -h $install/usr/bin/jwm
44 }
46 genpkg_rules() {
47 copy @std
48 DEPENDS="xorg-libX11 xorg-libXft xorg-libXrender xorg-libXpm xorg-libXext \
49 xorg-libXmu xorg-libXinerama xorg-libXau xorg-libXdmcp xorg-libXt libjpeg \
50 libpng16 slitaz-configs-base xorg-xload xorg-xclock imlib2 hsetroot"
51 case "$ARCH" in
52 arm*) DEPENDS="$DEPENDS joe lynx ytree";;
53 *) DEPENDS="$DEPENDS compton nano" ;;
54 esac
55 TAGS="window-manager"
56 }
58 post_install() {
59 if [ -d "$1/etc/jwm" ]; then
60 # Removing old system wide configs: /etc/jwm
61 rm -rf "$1/etc/jwm"
62 fi
63 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
64 # Adding WM to SLIM available sessions.
65 if ! echo "$res" | grep -q $PACKAGE; then
66 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf"
67 fi
68 true
69 }
71 post_remove() {
72 # Remove WM from SLIM available sessions.
73 if grep -q $PACKAGE "$1/etc/slim.conf"; then
74 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
75 fi
76 }