wok view jwm/receipt @ rev 24529
updated exiv2 and exiv2-dev again (0.27.3 -> 0.27.5)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 23 07:34:39 2022 +0100 (2022-02-23) |
parents | 3f1e8cc50b2b |
children | fba451138c89 |
line source
1 # SliTaz package receipt.
3 PACKAGE="jwm"
4 VERSION="2.3.7"
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="http://joewing.net/projects/jwm/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="${WEB_SITE}releases/$TARBALL"
15 DEPENDS="hsetroot imlib2 libjpeg libpng slitaz-configs-base \
16 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft \
17 xorg-libXinerama xorg-libXmu xorg-libXpm xorg-libXrender \
18 xorg-libXt xorg-xclock xorg-xload"
19 BUILD_DEPENDS="jpeg-dev libpng-dev xorg-libX11-dev xorg-libXft-dev"
20 HOST_ARCH="i486 arm"
22 # Handle cross compilation
23 case "$ARCH" in
24 arm)
25 DEPENDS="$DEPENDS joe lynx ytree"
26 ARCH_ARGS="--disable-nls" ;;
27 i?86)
28 DEPENDS="$DEPENDS compton nano" ;;
29 esac
31 # What is the latest version available today?
32 current_version()
33 {
34 wget -O - $WEB_SITE 2>/dev/null | \
35 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
36 }
38 # Rules to configure and make the package.
39 compile_rules()
40 {
41 #[ -f done.resize-backgound.u ] || patch -p1 < $stuff/resize-backgound.u
42 #touch done.resize-backgound.u
43 ./configure \
44 --prefix=/usr \
45 --mandir=/usr/share/man \
46 --sysconfdir=/etc/xdg/jwm \
47 --disable-fribidi \
48 --disable-rpath \
49 --disable-rsvg \
50 --disable-confirm \
51 $CONFIGURE_ARGS $ARCH_ARGS 2>/dev/null &&
52 make -j 1 &&
53 make install
54 }
56 testsuite()
57 {
58 readelf -h $install/usr/bin/jwm
59 }
61 # Rules to gen a SliTaz package suitable for Tazpkg.
62 genpkg_rules()
63 {
64 mkdir -p $fs/etc/xdg/jwm
65 mkdir -p $fs/usr/share
67 cp -a $install/usr/bin $fs/usr/bin
69 # Simple and default config file.
70 cp $stuff/simple.jwmrc $fs/etc/xdg/jwm/simple.jwmrc
71 cp $stuff/slitaz.jwmrc $fs/etc/xdg/jwm/system.jwmrc
73 cp -r $stuff/xsessions $fs/usr/share
74 }
76 post_install()
77 {
78 if [ -d "$1/etc/jwm" ]; then
79 echo "Removing old system wide configs: /etc/jwm"
80 rm -rf "$1/etc/jwm"
81 fi
83 # Adding WM to SLIM available sessions.
84 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
85 if ! echo "$res" | grep -q $PACKAGE; then
86 echo -n "Adding $PACKAGE to /etc/slim.conf..."
87 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf"
88 status
89 fi
90 true
91 }
93 post_remove()
94 {
95 # Remove WM from SLIM available sessions.
96 if grep -q $PACKAGE "$1/etc/slim.conf"; then
97 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
98 fi
99 }