wok annotate icewm/receipt @ rev 25599

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