wok-next diff jwm/receipt @ rev 20612
Up autofs (5.1.4), c-ares, curl (7.58.0)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Apr 19 23:07:29 2018 +0300 (2018-04-19) |
parents | c4e53a39395a |
children | d6378d455338 |
line diff
1.1 --- a/jwm/receipt Fri Mar 02 12:12:14 2018 +0200 1.2 +++ b/jwm/receipt Thu Apr 19 23:07:29 2018 +0300 1.3 @@ -1,82 +1,74 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="jwm" 1.8 VERSION="2.2.0" 1.9 CATEGORY="x-window" 1.10 -SHORT_DESC="JWM is a light Window Manager for the X window system." 1.11 +SHORT_DESC="JWM is a light Window Manager for the X window system" 1.12 MAINTAINER="pankso@slitaz.org" 1.13 LICENSE="GPL2" 1.14 +WEB_SITE="http://www.joewing.net/programs/jwm/" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.xz" 1.17 -WEB_SITE="http://www.joewing.net/programs/jwm/" 1.18 WGET_URL="http://www.joewing.net/programs/jwm/releases/$TARBALL" 1.19 -TAGS="window-manager" 1.20 1.21 -DEPENDS="xorg-libX11 xorg-libXft xorg-libXrender xorg-libXpm xorg-libXext \ 1.22 -xorg-libXmu xorg-libXinerama xorg-libXau xorg-libXdmcp xorg-libXt libjpeg \ 1.23 -libpng16 slitaz-configs-base xorg-xload xorg-xclock imlib2 hsetroot" 1.24 BUILD_DEPENDS="xorg-libX11-dev xorg-libXft-dev jpeg-dev libpng16-dev \ 1.25 xorg-libXext-dev gettext" 1.26 1.27 -# Handle cross compilation 1.28 -case "$ARCH" in 1.29 - arm) 1.30 - DEPENDS="$DEPENDS joe lynx ytree" 1.31 - ARCH_ARGS="--disable-nls" ;; 1.32 - i?86) 1.33 - DEPENDS="$DEPENDS compton nano" ;; 1.34 -esac 1.35 - 1.36 -# Rules to configure and make the package. 1.37 -compile_rules() 1.38 -{ 1.39 +compile_rules() { 1.40 + case "$ARCH" in 1.41 + arm*) ARCH_ARGS="--disable-nls";; 1.42 + *) ARCH_ARGS="";; 1.43 + esac 1.44 #[ -f done.resize-backgound.u ] || patch -p1 < $stuff/resize-backgound.u 1.45 #touch done.resize-backgound.u 1.46 + 1.47 ./configure \ 1.48 - --prefix=/usr \ 1.49 - --mandir=/usr/share/man \ 1.50 --sysconfdir=/etc/xdg/jwm \ 1.51 --disable-fribidi \ 1.52 --disable-rpath \ 1.53 --disable-rsvg \ 1.54 --disable-confirm \ 1.55 - $CONFIGURE_ARGS $ARCH_ARGS 2>/dev/null && 1.56 - make && make install 1.57 + $ARCH_ARGS \ 1.58 + $CONFIGURE_ARGS && 1.59 + make && 1.60 + make install || return 1 1.61 + 1.62 + # Simple and default config file 1.63 + install -Dm644 $stuff/simple.jwmrc $install/etc/xdg/jwm/simple.jwmrc 1.64 + install -Dm644 $stuff/slitaz.jwmrc $install/etc/xdg/jwm/system.jwmrc 1.65 + install -Dm644 $stuff/xsessions/jwm.desktop $install/usr/share/xsessions/jwm.desktop 1.66 } 1.67 1.68 -testsuite() 1.69 -{ 1.70 +testsuite() { 1.71 readelf -h $install/usr/bin/jwm 1.72 } 1.73 1.74 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.75 -genpkg_rules() 1.76 -{ 1.77 - mkdir -p $fs/etc/xdg/jwm $fs/usr/share 1.78 - cp -a $install/usr/bin $fs/usr/bin 1.79 - # Simple and default config file. 1.80 - cp $stuff/simple.jwmrc $fs/etc/xdg/jwm/simple.jwmrc 1.81 - cp $stuff/slitaz.jwmrc $fs/etc/xdg/jwm/system.jwmrc 1.82 - cp -r $stuff/xsessions $fs/usr/share 1.83 +genpkg_rules() { 1.84 + copy @std 1.85 + DEPENDS="xorg-libX11 xorg-libXft xorg-libXrender xorg-libXpm xorg-libXext \ 1.86 + xorg-libXmu xorg-libXinerama xorg-libXau xorg-libXdmcp xorg-libXt libjpeg \ 1.87 + libpng16 slitaz-configs-base xorg-xload xorg-xclock imlib2 hsetroot" 1.88 + case "$ARCH" in 1.89 + arm*) DEPENDS="$DEPENDS joe lynx ytree";; 1.90 + *) DEPENDS="$DEPENDS compton nano" ;; 1.91 + esac 1.92 + TAGS="window-manager" 1.93 } 1.94 1.95 -post_install() 1.96 -{ 1.97 +post_install() { 1.98 if [ -d "$1/etc/jwm" ]; then 1.99 - echo "Removing old system wide configs: /etc/jwm" 1.100 + # Removing old system wide configs: /etc/jwm 1.101 rm -rf "$1/etc/jwm" 1.102 fi 1.103 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) 1.104 # Adding WM to SLIM available sessions. 1.105 if ! echo "$res" | grep -q $PACKAGE; then 1.106 - echo -n "Adding $PACKAGE to /etc/slim.conf..." 1.107 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf" 1.108 - status 1.109 fi 1.110 true 1.111 } 1.112 1.113 -post_remove() 1.114 -{ 1.115 +post_remove() { 1.116 # Remove WM from SLIM available sessions. 1.117 if grep -q $PACKAGE "$1/etc/slim.conf"; then 1.118 sed -i s/,$PACKAGE// "$1/etc/slim.conf"