wok annotate icewm/receipt @ rev 24851
updated libxdg-basedir and libxdg-basedir-dev (1.2.0 -> 1.2.3)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 26 10:49:19 2022 +0100 (2022-03-26) |
parents | 750eba330f9c |
children | 20ad21d5532c |
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@24055 | 26 current_version() |
pascal@24055 | 27 { |
pascal@24055 | 28 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 29 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 30 } |
pascal@24055 | 31 |
slaxemulator@7182 | 32 # Rules to configure and make the package. |
slaxemulator@7182 | 33 compile_rules() |
slaxemulator@7182 | 34 { |
Hans-G?nter@22941 | 35 # sed -i '/deprecated/d' src/base.h |
Hans-G?nter@22941 | 36 # sed -i 's/^CORE_LIBS =/& -lfontconfig/' src/Makefile.in |
Hans-G?nter@22941 | 37 |
Hans-G?nter@22941 | 38 export LDFLAGS="$LDFLAGS -lrt" |
Hans-G?nter@22941 | 39 |
Hans-G?nter@22941 | 40 ./autogen.sh && |
Hans-G?nter@22941 | 41 ./configure \ |
Hans-G?nter@22941 | 42 ASCIIDOC=asciidoc \ |
Hans-G?nter@22941 | 43 CC=gcc-83 \ |
Hans-G?nter@22941 | 44 CXX=g++-83 \ |
Hans-G?nter@22941 | 45 --prefix=/usr \ |
Hans-G?nter@22941 | 46 --sysconfdir=/etc \ |
Hans-G?nter@22941 | 47 --libexecdir=/usr/lib/icewm \ |
Hans-G?nter@22941 | 48 --localstatedir=/var \ |
Hans-G?nter@22941 | 49 --mandir=/usr/share/man \ |
Hans-G?nter@22941 | 50 $CONFIGURE_ARGS && |
Hans-G?nter@22941 | 51 # remove unsupported options for pod2man and pod2html (perl 5.14.1) |
Hans-G?nter@22941 | 52 sed -i '/--errors="none"/d; /--nourls/d; /--poderrors/d' \ |
Hans-G?nter@22941 | 53 man/Makefile && |
slaxemulator@7182 | 54 make && |
Hans-G?nter@24657 | 55 make install DESTDIR=$DESTDIR |
slaxemulator@7182 | 56 } |
slaxemulator@7182 | 57 |
slaxemulator@7182 | 58 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7182 | 59 genpkg_rules() |
slaxemulator@7182 | 60 { |
Hans-G?nter@24657 | 61 cook_copy_folders bin |
Hans-G?nter@24657 | 62 cook_copy_folders share |
Hans-G?nter@24657 | 63 rm -rf $fs/usr/share/doc |
Hans-G?nter@24657 | 64 rm -rf $fs/usr/share/locale |
Hans-G?nter@24657 | 65 rm -rf $fs/usr/share/man |
Hans-G?nter@24657 | 66 } |
Hans-G?nter@22941 | 67 |
Hans-G?nter@24657 | 68 post_install() |
Hans-G?nter@24657 | 69 { |
Hans-G?nter@24657 | 70 # Add WM to SLIM available sessions. |
Hans-G?nter@24657 | 71 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) |
Hans-G?nter@24657 | 72 if ! echo "$res" | grep -q $PACKAGE |
Hans-G?nter@24657 | 73 then |
Hans-G?nter@24657 | 74 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
Hans-G?nter@24657 | 75 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \ |
Hans-G?nter@24657 | 76 "$1/etc/slim.conf" |
Hans-G?nter@24657 | 77 status |
Hans-G?nter@24657 | 78 fi |
Hans-G?nter@24657 | 79 true |
slaxemulator@7182 | 80 } |
Hans-G?nter@24657 | 81 |
Hans-G?nter@24657 | 82 post_remove() |
Hans-G?nter@24657 | 83 { |
Hans-G?nter@24657 | 84 # Remove WM from SLIM available sessions. |
Hans-G?nter@24657 | 85 if grep -q $PACKAGE "$1/etc/slim.conf" |
Hans-G?nter@24657 | 86 then |
Hans-G?nter@24657 | 87 sed -i s/,$PACKAGE// "$1/etc/slim.conf" |
Hans-G?nter@24657 | 88 fi |
Hans-G?nter@24657 | 89 } |