wok annotate jwm/receipt @ rev 21512

updated nagios-plugins (1.4.16 -> 2.2.1)
author Hans-G?nter Theisgen
date Fri May 03 12:54:18 2019 +0100 (2019-05-03)
parents e3f377fbc5f0
children ad8b9ff412d2
rev   line source
pankso@25 1 # SliTaz package receipt.
pankso@25 2
pankso@25 3 PACKAGE="jwm"
Hans-G?nter@21088 4 VERSION="2.3.7"
pankso@25 5 CATEGORY="x-window"
Hans-G?nter@21088 6 TAGS="window-manager"
Hans-G?nter@21088 7 SHORT_DESC="A light Window Manager for the X window system."
pankso@25 8 MAINTAINER="pankso@slitaz.org"
pascal@15215 9 LICENSE="GPL2"
Hans-G?nter@21088 10 WEB_SITE="http://joewing.net/projects/jwm/"
Hans-G?nter@21088 11
pankso@15940 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
Hans-G?nter@21088 13 WGET_URL="${WEB_SITE}releases/$TARBALL"
Hans-G?nter@21088 14
Hans-G?nter@21088 15 DEPENDS="hsetroot imlib2 libjpeg libpng slitaz-configs-base \
Hans-G?nter@21088 16 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft \
Hans-G?nter@21088 17 xorg-libXinerama xorg-libXmu xorg-libXpm xorg-libXrender \
Hans-G?nter@21088 18 xorg-libXt xorg-xclock xorg-xload"
Hans-G?nter@21088 19 BUILD_DEPENDS="jpeg-dev libpng-dev xorg-libX11-dev xorg-libXft-dev"
pankso@16067 20 HOST_ARCH="i486 arm"
pankso@25 21
pankso@16067 22 # Handle cross compilation
pankso@16067 23 case "$ARCH" in
pankso@16081 24 arm)
pankso@16081 25 DEPENDS="$DEPENDS joe lynx ytree"
pankso@16081 26 ARCH_ARGS="--disable-nls" ;;
pankso@16081 27 i?86)
pankso@16081 28 DEPENDS="$DEPENDS compton nano" ;;
pankso@16067 29 esac
pankso@12019 30
pankso@25 31 # Rules to configure and make the package.
pankso@25 32 compile_rules()
pankso@25 33 {
pankso@15940 34 #[ -f done.resize-backgound.u ] || patch -p1 < $stuff/resize-backgound.u
pankso@15940 35 #touch done.resize-backgound.u
Hans-G?nter@21088 36 ./configure \
Hans-G?nter@21088 37 --prefix=/usr \
Hans-G?nter@21088 38 --mandir=/usr/share/man \
Hans-G?nter@21088 39 --sysconfdir=/etc/xdg/jwm \
Hans-G?nter@21088 40 --disable-fribidi \
Hans-G?nter@21088 41 --disable-rpath \
Hans-G?nter@21088 42 --disable-rsvg \
Hans-G?nter@21088 43 --disable-confirm \
pankso@16067 44 $CONFIGURE_ARGS $ARCH_ARGS 2>/dev/null &&
Hans-G?nter@21088 45 make -j 1 &&
Hans-G?nter@21088 46 make install
pankso@25 47 }
pankso@25 48
pankso@16067 49 testsuite()
pankso@16067 50 {
pankso@16067 51 readelf -h $install/usr/bin/jwm
pankso@16067 52 }
pankso@16067 53
pankso@25 54 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@25 55 genpkg_rules()
pankso@25 56 {
Hans-G?nter@21088 57 mkdir -p $fs/etc/xdg/jwm
Hans-G?nter@21088 58 mkdir -p $fs/usr/share
Hans-G?nter@21088 59
pankso@15940 60 cp -a $install/usr/bin $fs/usr/bin
Hans-G?nter@21088 61
pankso@12019 62 # Simple and default config file.
pankso@12407 63 cp $stuff/simple.jwmrc $fs/etc/xdg/jwm/simple.jwmrc
pankso@12407 64 cp $stuff/slitaz.jwmrc $fs/etc/xdg/jwm/system.jwmrc
Hans-G?nter@21088 65
pankso@12407 66 cp -r $stuff/xsessions $fs/usr/share
pankso@25 67 }
pankso@12308 68
pankso@12308 69 post_install()
pankso@12308 70 {
pankso@12407 71 if [ -d "$1/etc/jwm" ]; then
pascal@18730 72 echo "Removing old system wide configs: /etc/jwm"
pascal@18730 73 rm -rf "$1/etc/jwm"
pankso@12407 74 fi
Hans-G?nter@21088 75
Hans-G?nter@21088 76 # Adding WM to SLIM available sessions.
pascal@18730 77 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
pankso@12308 78 if ! echo "$res" | grep -q $PACKAGE; then
pankso@12308 79 echo -n "Adding $PACKAGE to /etc/slim.conf..."
pascal@18730 80 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf"
pankso@12308 81 status
pankso@12308 82 fi
pascal@18707 83 true
pankso@12308 84 }
pankso@12308 85
pankso@12308 86 post_remove()
pankso@12308 87 {
pankso@12308 88 # Remove WM from SLIM available sessions.
pascal@18730 89 if grep -q $PACKAGE "$1/etc/slim.conf"; then
pascal@18730 90 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
pankso@12308 91 fi
pankso@12308 92 }