wok-current view openbox/receipt @ rev 15984
tcc: improve arm support but still not cross compiling
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 02 00:29:29 2014 +0100 (2014-03-02) |
parents | 6f9125b9e412 |
children | 1204cf352c74 |
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 SUGGESTED="obconf spacefm pcmanfm hsetroot"
13 TAGS="window-manager wm"
15 DEPENDS="startup-notification pango glib xorg-libX11 fontconfig freetype \
16 xorg-libXrandr xorg-libXft xorg-libXinerama xorg-libXcursor \
17 libxml2 slitaz-configs"
18 BUILD_DEPENDS="xorg-dev pango-dev glib-dev startup-notification-dev \
19 xorg-libXft-dev util-linux-uuid-dev libxml2-dev"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 chmod +x install-sh
26 ./configure \
27 --prefix=/usr \
28 --sysconfdir=/etc \
29 --libexecdir=/usr/lib/openbox \
30 $CONFIGURE_ARGS &&
31 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile &&
32 make &&
33 make -j1 DESTDIR=$DESTDIR install &&
34 rm -rf $install/usr/share/applications
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib/openbox $fs/usr/share/themes
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 cp -a $install/usr/lib/openbox $fs/usr/lib
45 # We dont have GNOME or KDE
46 rm $fs/usr/bin/openbox-gnome-session
47 rm $fs/usr/bin/openbox-kde-session
48 rm $fs/usr/bin/gnome-panel-control
49 rm $fs/usr/bin/gdm-control
50 chmod 0755 $fs/usr/bin/openbox-session
52 # Python XDG script --> openbox-python
53 rm -f $fs/usr/lib/openbox/openbox-xdg-autostart
54 patch -p1 $fs/usr/lib/openbox/openbox-autostart \
55 -i $stuff/openbox-autostart.patch || exit 1
57 # Just Onyx Themes --> openbox-themes
58 cp -a $install/usr/share/themes/Onyx* $fs/usr/share/themes
60 # Xsessions
61 cp -a $stuff/xsessions $fs/usr/share
63 # Pipe menu.
64 cp $stuff/open-folder-menu.sh $fs/usr/lib/openbox
66 # Set perms.
67 chown -R root.root $fs
68 }