wok annotate jwm/receipt @ rev 19088
cross/arm: fix build for ell busybox flex ninvaders
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 30 18:20:33 2016 +0200 (2016-04-30) |
parents | 1067bb7f1e24 |
children | e3f377fbc5f0 |
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" |
al@17501 | 12 TAGS="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@16081 | 17 libpng slitaz-configs-base xorg-xload xorg-xclock imlib2 hsetroot" |
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@16081 | 22 arm) |
pankso@16081 | 23 DEPENDS="$DEPENDS joe lynx ytree" |
pankso@16081 | 24 ARCH_ARGS="--disable-nls" ;; |
pankso@16081 | 25 i?86) |
pankso@16081 | 26 DEPENDS="$DEPENDS compton nano" ;; |
pankso@16067 | 27 esac |
pankso@12019 | 28 |
pankso@25 | 29 # Rules to configure and make the package. |
pankso@25 | 30 compile_rules() |
pankso@25 | 31 { |
pankso@15940 | 32 #[ -f done.resize-backgound.u ] || patch -p1 < $stuff/resize-backgound.u |
pankso@15940 | 33 #touch done.resize-backgound.u |
pankso@90 | 34 ./configure \ |
pankso@90 | 35 --prefix=/usr \ |
pankso@90 | 36 --mandir=/usr/share/man \ |
pankso@12407 | 37 --sysconfdir=/etc/xdg/jwm \ |
pankso@90 | 38 --disable-fribidi \ |
pankso@16067 | 39 --disable-rpath \ |
pankso@16067 | 40 --disable-rsvg \ |
pankso@16067 | 41 --disable-confirm \ |
pankso@16067 | 42 $CONFIGURE_ARGS $ARCH_ARGS 2>/dev/null && |
pankso@15940 | 43 make && make install |
pankso@25 | 44 } |
pankso@25 | 45 |
pankso@16067 | 46 testsuite() |
pankso@16067 | 47 { |
pankso@16067 | 48 readelf -h $install/usr/bin/jwm |
pankso@16067 | 49 } |
pankso@16067 | 50 |
pankso@25 | 51 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@25 | 52 genpkg_rules() |
pankso@25 | 53 { |
pankso@15940 | 54 mkdir -p $fs/etc/xdg/jwm $fs/usr/share |
pankso@15940 | 55 cp -a $install/usr/bin $fs/usr/bin |
pankso@12019 | 56 # Simple and default config file. |
pankso@12407 | 57 cp $stuff/simple.jwmrc $fs/etc/xdg/jwm/simple.jwmrc |
pankso@12407 | 58 cp $stuff/slitaz.jwmrc $fs/etc/xdg/jwm/system.jwmrc |
pankso@12407 | 59 cp -r $stuff/xsessions $fs/usr/share |
pankso@25 | 60 } |
pankso@12308 | 61 |
pankso@12308 | 62 post_install() |
pankso@12308 | 63 { |
pankso@12407 | 64 if [ -d "$1/etc/jwm" ]; then |
pascal@18730 | 65 echo "Removing old system wide configs: /etc/jwm" |
pascal@18730 | 66 rm -rf "$1/etc/jwm" |
pankso@12407 | 67 fi |
pascal@18730 | 68 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) |
pankso@12308 | 69 # Adding WM to SLIM available sessions. |
pankso@12308 | 70 if ! echo "$res" | grep -q $PACKAGE; then |
pankso@12308 | 71 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pascal@18730 | 72 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf" |
pankso@12308 | 73 status |
pankso@12308 | 74 fi |
pascal@18707 | 75 true |
pankso@12308 | 76 } |
pankso@12308 | 77 |
pankso@12308 | 78 post_remove() |
pankso@12308 | 79 { |
pankso@12308 | 80 # Remove WM from SLIM available sessions. |
pascal@18730 | 81 if grep -q $PACKAGE "$1/etc/slim.conf"; then |
pascal@18730 | 82 sed -i s/,$PACKAGE// "$1/etc/slim.conf" |
pankso@12308 | 83 fi |
pankso@12308 | 84 } |