wok-current annotate openbox/receipt @ rev 16162

ARM: add Openbox and some fix edje/emotion
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 29 03:04:46 2014 +0100 (2014-03-29)
parents 9642e2562b88
children d504756dc474
rev   line source
pankso@357 1 # SliTaz package receipt.
pankso@357 2
pankso@357 3 PACKAGE="openbox"
erjo@15727 4 VERSION="3.5.2"
pankso@357 5 CATEGORY="x-window"
pankso@357 6 SHORT_DESC="Small-footprint and standard compliant Window Manager."
pankso@357 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pankso@357 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@12467 10 WEB_SITE="http://openbox.org/"
pankso@12467 11 WGET_URL="http://openbox.org/dist/openbox/$TARBALL"
jozee@4970 12 TAGS="window-manager wm"
pankso@16162 13 HOST_ARCH="i486 arm"
pankso@357 14
pankso@16162 15 SUGGESTED="obconf spacefm pcmanfm hsetroot conky"
pankso@16162 16 DEPENDS="pango glib xorg-libX11 fontconfig freetype xorg-libXrandr \
pankso@16162 17 xorg-libXft xorg-libXinerama xorg-libXcursor libxml2 slitaz-configs"
pankso@16162 18 BUILD_DEPENDS=" pango-dev glib-dev xorg-libXft-dev util-linux-uuid-dev \
pankso@16162 19 libxml2-dev"
pankso@16162 20
pankso@16162 21 # Handle slitaz arch: /etc/slitaz/slitaz.conf
pankso@16162 22 case "$SLITAZ_ARCH" in
pankso@16162 23 i?86) DEPENDS="$DEPENDS startup-notification" ;;
pankso@16162 24 esac
pankso@16162 25
pankso@16162 26 # Handle cross compilation
pankso@16162 27 case "$ARCH" in
pankso@16162 28 i?86) BUILD_DEPENDS="$BUILD_DEPENDS startup-notification-dev xorg-dev" ;;
pankso@16162 29 esac
pankso@9716 30
pankso@357 31 # Rules to configure and make the package.
pankso@357 32 compile_rules()
pankso@357 33 {
pankso@357 34 chmod +x install-sh
pankso@357 35 ./configure \
pankso@357 36 --prefix=/usr \
pankso@357 37 --sysconfdir=/etc \
pankso@12467 38 --libexecdir=/usr/lib/openbox \
pascal@1566 39 $CONFIGURE_ARGS &&
pascal@1566 40 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile &&
pascal@1566 41 make &&
pankso@12467 42 make -j1 DESTDIR=$DESTDIR install &&
pankso@12467 43 rm -rf $install/usr/share/applications
pankso@357 44 }
pankso@357 45
pankso@357 46 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@357 47 genpkg_rules()
pankso@357 48 {
pankso@12467 49 mkdir -p $fs/usr/lib/openbox $fs/usr/share/themes
pankso@12467 50 cp -a $install/usr/bin $fs/usr
pankso@12467 51 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@12467 52 cp -a $install/usr/lib/openbox $fs/usr/lib
pankso@13564 53
pankso@357 54 # We dont have GNOME or KDE
pankso@357 55 rm $fs/usr/bin/openbox-gnome-session
pankso@357 56 rm $fs/usr/bin/openbox-kde-session
pankso@357 57 rm $fs/usr/bin/gnome-panel-control
pankso@12467 58 rm $fs/usr/bin/gdm-control
pankso@357 59 chmod 0755 $fs/usr/bin/openbox-session
pankso@13564 60
pankso@12467 61 # Python XDG script --> openbox-python
pankso@12467 62 rm -f $fs/usr/lib/openbox/openbox-xdg-autostart
pankso@12467 63 patch -p1 $fs/usr/lib/openbox/openbox-autostart \
pankso@12467 64 -i $stuff/openbox-autostart.patch || exit 1
pankso@13564 65
pankso@12467 66 # Just Onyx Themes --> openbox-themes
pankso@12467 67 cp -a $install/usr/share/themes/Onyx* $fs/usr/share/themes
pankso@13564 68
pankso@12467 69 # Xsessions
pankso@12467 70 cp -a $stuff/xsessions $fs/usr/share
pankso@13564 71
pankso@714 72 # Pipe menu.
pankso@12467 73 cp $stuff/open-folder-menu.sh $fs/usr/lib/openbox
pankso@624 74
pankso@410 75 # Set perms.
pankso@357 76 chown -R root.root $fs
pankso@357 77 }