wok-next view jwm/receipt @ rev 21022

Combine rox-filer
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Nov 03 04:01:01 2018 +0200 (2018-11-03)
parents f48456621a9d
children 2a618021f5c2
line source
1 # SliTaz package receipt v2.
3 PACKAGE="jwm"
4 VERSION="2.2.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Lightweight Window Manager for the X window system"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://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-dev"
17 compile_rules() {
18 ./configure \
19 --sysconfdir=/etc/xdg/jwm \
20 --disable-fribidi \
21 --disable-rpath \
22 --disable-rsvg \
23 --disable-confirm \
24 $CONFIGURE_ARGS &&
25 make &&
26 make install || return 1
28 # Simple and default config file
29 install -Dm644 $stuff/simple.jwmrc $install/etc/xdg/jwm/simple.jwmrc
30 install -Dm644 $stuff/slitaz.jwmrc $install/etc/xdg/jwm/system.jwmrc
31 install -Dm644 $stuff/xsessions/jwm.desktop $install/usr/share/xsessions/jwm.desktop
32 }
34 testsuite() {
35 readelf -h $install/usr/bin/jwm
36 }
38 genpkg_rules() {
39 copy @std
40 DEPENDS="xorg-libX11 xorg-libXft xorg-libXrender xorg-libXpm xorg-libXext \
41 xorg-libXmu xorg-libXinerama xorg-libXau xorg-libXdmcp xorg-libXt libjpeg \
42 libpng16 slitaz-configs-base xorg-xload xorg-xclock imlib2 hsetroot \
43 compton nano"
44 TAGS="window-manager"
45 }
47 post_install() {
48 if [ -d "$1/etc/jwm" ]; then
49 # Removing old system wide configs: /etc/jwm
50 rm -rf "$1/etc/jwm"
51 fi
52 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
53 # Adding WM to SLIM available sessions.
54 if ! echo "$res" | grep -q $PACKAGE; then
55 sed -i "s/^sessions.*/sessions $res,$PACKAGE/" "$1/etc/slim.conf"
56 fi
57 true
58 }
60 post_remove() {
61 # Remove WM from SLIM available sessions.
62 if grep -q $PACKAGE "$1/etc/slim.conf"; then
63 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
64 fi
65 }