wok-6.x view jwm/receipt @ rev 25142
updated pjsip and pjsip-dev (2.8 -> 2.11.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 29 14:35:46 2022 +0100 (2022-06-29) |
parents | ad8b9ff412d2 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="jwm"
4 VERSION="2.4.1"
5 CATEGORY="x-window"
6 TAGS="window-manager"
7 SHORT_DESC="A light Window Manager for the X window system."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://joewing.net/projects/jwm/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="${WEB_SITE}releases/$TARBALL"
15 SUGGESTED="jwm-lang"
16 DEPENDS="hsetroot imlib2 libjpeg libpng librsvg libxml2 slitaz-configs-base
17 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft
18 xorg-libXinerama xorg-libXmu xorg-libXpm xorg-libXrender
19 xorg-libXt xorg-xclock xorg-xload"
20 BUILD_DEPENDS="cairo-dev freetype-dev jpeg-dev libpng-dev librsvg-dev
21 libxml2-dev xorg-libX11-dev xorg-libXft-dev"
23 HOST_ARCH="i486 arm"
25 # Handle cross compilation
26 case "$ARCH" in
27 arm)
28 DEPENDS="$DEPENDS joe lynx ytree"
29 ARCH_ARGS="--disable-nls" ;;
30 i?86)
31 DEPENDS="$DEPENDS compton nano" ;;
32 esac
34 # What is the latest version available today?
35 current_version()
36 {
37 wget -O - $WEB_SITE 2>/dev/null | \
38 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
39 }
41 # Rules to configure and make the package.
42 compile_rules()
43 {
44 #[ -f done.resize-backgound.u ] || patch -p1 < $stuff/resize-backgound.u
45 #touch done.resize-backgound.u
47 ./configure \
48 --prefix=/usr \
49 --mandir=/usr/share/man \
50 --datadir=/usr/share \
51 --sysconfdir=/etc/xdg/jwm \
52 --enable-cairo=yes \
53 --enable-confirm=no \
54 --enable-nls=yes \
55 --enable-rpath=no \
56 --enable-rsvg=yes \
57 --enable-xft=yes \
58 $CONFIGURE_ARGS \
59 $ARCH_ARGS &&
60 sed -i 's|mkdir_p = @mkdir_p@|mkdir_p = /bin/mkdir -p|' \
61 po/Makefile &&
62 make &&
63 make install
64 }
66 testsuite()
67 {
68 readelf -h $install/usr/bin/jwm
69 }
71 # Rules to gen a SliTaz package suitable for Tazpkg.
72 genpkg_rules()
73 {
74 mkdir -p $fs/etc/xdg/jwm
75 mkdir -p $fs/usr/share
77 cook_copy_folders bin
79 # Simple and default configuration file.
80 cp $stuff/simple.jwmrc $fs/etc/xdg/jwm/simple.jwmrc
81 cp $stuff/slitaz.jwmrc $fs/etc/xdg/jwm/system.jwmrc
83 cp -r $stuff/xsessions $fs/usr/share
84 }
86 post_install()
87 {
88 if [ -d "$1/etc/jwm" ]
89 then
90 echo "Removing old system wide configuration files: /etc/jwm"
91 rm -rf "$1/etc/jwm"
92 fi
94 # Adding WM to SLIM available sessions.
95 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
96 if ! echo "$res" | grep -q $PACKAGE
97 then
98 echo -n "Adding $PACKAGE to /etc/slim.conf..."
99 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \
100 "$1/etc/slim.conf"
101 status
102 fi
103 true
104 }
106 post_remove()
107 {
108 # Remove WM from SLIM available sessions.
109 if grep -q $PACKAGE "$1/etc/slim.conf"
110 then
111 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
112 fi
113 }