wok view icewm/receipt @ rev 24667
updated inotify-tools (3.20.2.2 -> 3.22.1.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 11 16:18:25 2022 +0100 (2022-03-11) |
parents | 750eba330f9c |
children | 20ad21d5532c |
line source
1 # SliTaz package receipt.
3 PACKAGE="icewm"
4 VERSION="2.9.6"
5 CATEGORY="x-window"
6 TAGS="window-manager"
7 SHORT_DESC="Ice Window Manager with Themes."
8 MAINTAINER="devl547@gmail.com"
9 LICENSE="GPL2"
10 WEB_SITE="https://ice-wm.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/ice-wm/$PACKAGE/archive/$VERSION.tar.gz"
15 SUGGESTED="icewm-lang"
16 DEPENDS="freetype fribidi gcc83-lib-base gdk-pixbuf gettext-base imlib2
17 libxml2 xorg-libICE xorg-libSM xorg-libX11 xorg-libXext xorg-libXft
18 xorg-libXinerama xorg-libXpm xorg-libXrandr xorg-libXrender"
19 BUILD_DEPENDS="asciidoc autoconf automake fontconfig-dev freetype-dev
20 fribidi-dev gcc83 gdk-pixbuf-dev gettext giflib-dev imlib2-dev
21 libtool libxml2-dev pkg-config util-linux-uuid-dev xorg-libICE-dev
22 xorg-libSM-dev xorg-libX11-dev xorg-libXext-dev xorg-libXft-dev
23 xorg-libXinerama-dev xorg-libXpm-dev xorg-libXrandr-dev
24 xorg-libXrender-dev xorg-randrproto xorg-xproto xorg-xextproto"
26 current_version()
27 {
28 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
29 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 # sed -i '/deprecated/d' src/base.h
36 # sed -i 's/^CORE_LIBS =/& -lfontconfig/' src/Makefile.in
38 export LDFLAGS="$LDFLAGS -lrt"
40 ./autogen.sh &&
41 ./configure \
42 ASCIIDOC=asciidoc \
43 CC=gcc-83 \
44 CXX=g++-83 \
45 --prefix=/usr \
46 --sysconfdir=/etc \
47 --libexecdir=/usr/lib/icewm \
48 --localstatedir=/var \
49 --mandir=/usr/share/man \
50 $CONFIGURE_ARGS &&
51 # remove unsupported options for pod2man and pod2html (perl 5.14.1)
52 sed -i '/--errors="none"/d; /--nourls/d; /--poderrors/d' \
53 man/Makefile &&
54 make &&
55 make install DESTDIR=$DESTDIR
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 cook_copy_folders bin
62 cook_copy_folders share
63 rm -rf $fs/usr/share/doc
64 rm -rf $fs/usr/share/locale
65 rm -rf $fs/usr/share/man
66 }
68 post_install()
69 {
70 # Add WM to SLIM available sessions.
71 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
72 if ! echo "$res" | grep -q $PACKAGE
73 then
74 echo -n "Adding $PACKAGE to /etc/slim.conf..."
75 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \
76 "$1/etc/slim.conf"
77 status
78 fi
79 true
80 }
82 post_remove()
83 {
84 # Remove WM from SLIM available sessions.
85 if grep -q $PACKAGE "$1/etc/slim.conf"
86 then
87 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
88 fi
89 }