wok-next annotate jwm/receipt @ rev 20773

jack2: up (1.9.12)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jun 06 19:59:31 2018 +0300 (2018-06-06)
parents 757d032c55c7
children f48456621a9d
rev   line source
al@20534 1 # SliTaz package receipt v2.
pankso@25 2
pankso@25 3 PACKAGE="jwm"
pankso@15940 4 VERSION="2.2.0"
pankso@25 5 CATEGORY="x-window"
al@20534 6 SHORT_DESC="JWM is a light Window Manager for the X window system"
pankso@25 7 MAINTAINER="pankso@slitaz.org"
pascal@15215 8 LICENSE="GPL2"
al@20534 9 WEB_SITE="http://www.joewing.net/programs/jwm/"
al@20534 10
pankso@15940 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
pankso@25 12 WGET_URL="http://www.joewing.net/programs/jwm/releases/$TARBALL"
pankso@25 13
al@20454 14 BUILD_DEPENDS="xorg-libX11-dev xorg-libXft-dev jpeg-dev libpng16-dev \
pascal@20250 15 xorg-libXext-dev gettext"
pankso@16067 16
al@20534 17 compile_rules() {
al@20534 18 case "$ARCH" in
al@20534 19 arm*) ARCH_ARGS="--disable-nls";;
al@20534 20 *) ARCH_ARGS="";;
al@20534 21 esac
al@20534 22
pankso@90 23 ./configure \
pankso@12407 24 --sysconfdir=/etc/xdg/jwm \
pankso@90 25 --disable-fribidi \
pankso@16067 26 --disable-rpath \
pankso@16067 27 --disable-rsvg \
pankso@16067 28 --disable-confirm \
al@20534 29 $ARCH_ARGS \
al@20534 30 $CONFIGURE_ARGS &&
al@20534 31 make &&
al@20534 32 make install || return 1
al@20534 33
al@20534 34 # Simple and default config file
al@20534 35 install -Dm644 $stuff/simple.jwmrc $install/etc/xdg/jwm/simple.jwmrc
al@20534 36 install -Dm644 $stuff/slitaz.jwmrc $install/etc/xdg/jwm/system.jwmrc
al@20534 37 install -Dm644 $stuff/xsessions/jwm.desktop $install/usr/share/xsessions/jwm.desktop
pankso@25 38 }
pankso@25 39
al@20534 40 testsuite() {
pankso@16067 41 readelf -h $install/usr/bin/jwm
pankso@16067 42 }
pankso@16067 43
al@20534 44 genpkg_rules() {
al@20534 45 copy @std
al@20534 46 DEPENDS="xorg-libX11 xorg-libXft xorg-libXrender xorg-libXpm xorg-libXext \
al@20534 47 xorg-libXmu xorg-libXinerama xorg-libXau xorg-libXdmcp xorg-libXt libjpeg \
al@20534 48 libpng16 slitaz-configs-base xorg-xload xorg-xclock imlib2 hsetroot"
al@20534 49 case "$ARCH" in
al@20534 50 arm*) DEPENDS="$DEPENDS joe lynx ytree";;
al@20534 51 *) DEPENDS="$DEPENDS compton nano" ;;
al@20534 52 esac
al@20534 53 TAGS="window-manager"
pankso@25 54 }
pankso@12308 55
al@20534 56 post_install() {
pankso@12407 57 if [ -d "$1/etc/jwm" ]; then
al@20534 58 # Removing old system wide configs: /etc/jwm
pascal@18730 59 rm -rf "$1/etc/jwm"
pankso@12407 60 fi
pascal@18730 61 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
pankso@12308 62 # Adding WM to SLIM available sessions.
pankso@12308 63 if ! echo "$res" | grep -q $PACKAGE; then
pascal@18730 64 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf"
pankso@12308 65 fi
pascal@18707 66 true
pankso@12308 67 }
pankso@12308 68
al@20534 69 post_remove() {
pankso@12308 70 # Remove WM from SLIM available sessions.
pascal@18730 71 if grep -q $PACKAGE "$1/etc/slim.conf"; then
pascal@18730 72 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
pankso@12308 73 fi
pankso@12308 74 }