# SliTaz package receipt. PACKAGE="icewm" VERSION="2.9.6" CATEGORY="x-window" TAGS="window-manager" SHORT_DESC="Ice Window Manager with Themes." MAINTAINER="devl547@gmail.com" LICENSE="GPL2" WEB_SITE="https://ice-wm.org/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/ice-wm/$PACKAGE/archive/$VERSION.tar.gz" SUGGESTED="icewm-lang" DEPENDS="freetype fribidi gcc83-lib-base gdk-pixbuf gettext-base imlib2 libxml2 xorg-libICE xorg-libSM xorg-libX11 xorg-libXext xorg-libXft xorg-libXinerama xorg-libXpm xorg-libXrandr xorg-libXrender" BUILD_DEPENDS="asciidoc autoconf automake fontconfig-dev freetype-dev fribidi-dev gcc83 gdk-pixbuf-dev gettext giflib-dev imlib2-dev libtool libxml2-dev pkg-config util-linux-uuid-dev xorg-libICE-dev xorg-libSM-dev xorg-libX11-dev xorg-libXext-dev xorg-libXft-dev xorg-libXinerama-dev xorg-libXpm-dev xorg-libXrandr-dev xorg-libXrender-dev xorg-randrproto xorg-xproto xorg-xextproto" current_version() { wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { # sed -i '/deprecated/d' src/base.h # sed -i 's/^CORE_LIBS =/& -lfontconfig/' src/Makefile.in export LDFLAGS="$LDFLAGS -lrt" ./autogen.sh && ./configure \ ASCIIDOC=asciidoc \ CC=gcc-83 \ CXX=g++-83 \ --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/icewm \ --localstatedir=/var \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && # remove unsupported options for pod2man and pod2html (perl 5.14.1) sed -i '/--errors="none"/d; /--nourls/d; /--poderrors/d' \ man/Makefile && make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_folders bin cook_copy_folders share rm -rf $fs/usr/share/doc rm -rf $fs/usr/share/locale rm -rf $fs/usr/share/man } post_install() { # Add WM to SLIM available sessions. res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) if ! echo "$res" | grep -q $PACKAGE then echo -n "Adding $PACKAGE to /etc/slim.conf..." sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \ "$1/etc/slim.conf" status fi true } post_remove() { # Remove WM from SLIM available sessions. if grep -q $PACKAGE "$1/etc/slim.conf" then sed -i s/,$PACKAGE// "$1/etc/slim.conf" fi }