wok-current annotate jwm/receipt @ rev 16067
ARM: xorg-server-light cross compile and add more needed packages
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 12 20:54:03 2014 +0100 (2014-03-12) |
parents | 509a8cf333fe |
children | f20bb2aafa21 |
rev | line source |
---|---|
pankso@25 | 1 # SliTaz package receipt. |
pankso@25 | 2 |
pankso@25 | 3 PACKAGE="jwm" |
pankso@15940 | 4 VERSION="2.2.0" |
pankso@25 | 5 CATEGORY="x-window" |
pankso@25 | 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" |
pankso@15940 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@25 | 10 WEB_SITE="http://www.joewing.net/programs/jwm/" |
pankso@25 | 11 WGET_URL="http://www.joewing.net/programs/jwm/releases/$TARBALL" |
jozee@4941 | 12 TAGS="wm window-manager" |
pankso@16067 | 13 HOST_ARCH="i486 arm" |
pankso@25 | 14 |
pankso@12407 | 15 DEPENDS="xorg-libX11 xorg-libXft xorg-libXrender xorg-libXpm xorg-libXext \ |
pankso@12407 | 16 xorg-libXmu xorg-libXinerama xorg-libXau xorg-libXdmcp xorg-libXt libjpeg \ |
pankso@15940 | 17 libpng slitaz-configs-base xorg-xload xorg-xclock nano imlib2 hsetroot compton" |
pankso@16067 | 18 BUILD_DEPENDS="xorg-libX11-dev xorg-libXft-dev jpeg-dev libpng-dev" |
pankso@16067 | 19 |
pankso@16067 | 20 # Handle cross compilation |
pankso@16067 | 21 case "$ARCH" in |
pankso@16067 | 22 arm) ARCH_ARGS="--disable-nls" ;; |
pankso@16067 | 23 esac |
pankso@12019 | 24 |
pankso@25 | 25 # Rules to configure and make the package. |
pankso@25 | 26 compile_rules() |
pankso@25 | 27 { |
pankso@15940 | 28 #[ -f done.resize-backgound.u ] || patch -p1 < $stuff/resize-backgound.u |
pankso@15940 | 29 #touch done.resize-backgound.u |
pankso@90 | 30 ./configure \ |
pankso@90 | 31 --prefix=/usr \ |
pankso@90 | 32 --mandir=/usr/share/man \ |
pankso@12407 | 33 --sysconfdir=/etc/xdg/jwm \ |
pankso@90 | 34 --disable-fribidi \ |
pankso@16067 | 35 --disable-rpath \ |
pankso@16067 | 36 --disable-rsvg \ |
pankso@16067 | 37 --disable-confirm \ |
pankso@16067 | 38 $CONFIGURE_ARGS $ARCH_ARGS 2>/dev/null && |
pankso@15940 | 39 make && make install |
pankso@25 | 40 } |
pankso@25 | 41 |
pankso@16067 | 42 testsuite() |
pankso@16067 | 43 { |
pankso@16067 | 44 readelf -h $install/usr/bin/jwm |
pankso@16067 | 45 } |
pankso@16067 | 46 |
pankso@25 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@25 | 48 genpkg_rules() |
pankso@25 | 49 { |
pankso@15940 | 50 mkdir -p $fs/etc/xdg/jwm $fs/usr/share |
pankso@15940 | 51 cp -a $install/usr/bin $fs/usr/bin |
pankso@12019 | 52 # Simple and default config file. |
pankso@12407 | 53 cp $stuff/simple.jwmrc $fs/etc/xdg/jwm/simple.jwmrc |
pankso@12407 | 54 cp $stuff/slitaz.jwmrc $fs/etc/xdg/jwm/system.jwmrc |
pankso@12407 | 55 cp -r $stuff/xsessions $fs/usr/share |
pankso@25 | 56 } |
pankso@12308 | 57 |
pankso@12308 | 58 post_install() |
pankso@12308 | 59 { |
pankso@12407 | 60 if [ -d "$1/etc/jwm" ]; then |
pankso@12407 | 61 echo "Removing old system wide configs: $1/etc/jwm" |
pankso@12407 | 62 rm -rf $1/etc/jwm |
pankso@12407 | 63 fi |
pankso@12308 | 64 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//) |
pankso@12308 | 65 # Adding WM to SLIM available sessions. |
pankso@12308 | 66 if ! echo "$res" | grep -q $PACKAGE; then |
pankso@12308 | 67 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pankso@12308 | 68 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf |
pankso@12308 | 69 status |
pankso@12308 | 70 fi |
pankso@12308 | 71 } |
pankso@12308 | 72 |
pankso@12308 | 73 post_remove() |
pankso@12308 | 74 { |
pankso@12308 | 75 # Remove WM from SLIM available sessions. |
pankso@12308 | 76 if grep -q $PACKAGE $1/etc/slim.conf; then |
pankso@12308 | 77 sed -i s/,$PACKAGE// $1/etc/slim.conf |
pankso@12308 | 78 fi |
pankso@12308 | 79 } |