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