wok-next view openbox/receipt @ rev 11591

Up shaarli (0.0.33beta)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 12 00:55:33 2012 +0100 (2012-01-12)
parents 9280727ea775
children db9d08c745b4
line source
1 # SliTaz package receipt.
3 PACKAGE="openbox"
4 VERSION="3.4.11.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Small-footprint and standard compliant Window Manager."
7 SUGGESTED="obconf pcmanfm hsetroot slitaz-configs"
8 MAINTAINER="pankso@slitaz.org"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://icculus.org/openbox/"
11 WGET_URL="http://offload2.icculus.org:9090/openbox/releases/$TARBALL"
12 TAGS="window-manager wm"
14 DEPENDS="startup-notification pango glib xorg-libX11 fontconfig freetype \
15 xorg-libXrandr xorg-libXft"
16 BUILD_DEPENDS="xorg-dev pango-dev glib-dev startup-notification-dev \
17 xorg-libXft-dev util-linux-ng-uuid-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 chmod +x install-sh
25 ./configure \
26 --prefix=/usr \
27 --sysconfdir=/etc \
28 --infodir=/usr/share/info \
29 --mandir=/usr/share/man \
30 $CONFIGURE_ARGS &&
31 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile &&
32 make &&
33 make -j1 DESTDIR=$PWD/_pkg install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib/openbox $fs/usr/share
40 cp -a $_pkg/usr/bin $fs/usr
41 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
42 cp -a $_pkg/usr/share/themes $fs/usr/share
44 # We dont have GNOME or KDE
45 rm $fs/usr/bin/openbox-gnome-session
46 rm $fs/usr/bin/openbox-kde-session
47 rm $fs/usr/bin/gnome-panel-control
48 chmod 0755 $fs/usr/bin/openbox-session
50 # Pipe menu.
51 cp stuff/open-folder-menu.sh $fs/usr/lib/openbox
53 # Fix an error in openbox-session (version 3.4.11.1)
54 sed 's#exec /usr/bin/openbox "$@"#exec /usr/bin/openbox#' \
55 -i $fs/usr/bin/openbox-session
57 # Locale
58 for i in $LOCALE
59 do
60 mkdir -p $fs/usr/share/locale/$i/LC_MESSAGES
61 cp $src/po/$i.gmo \
62 $fs/usr/share/locale/$i/LC_MESSAGES/openbox.mo
63 done
65 # Set perms.
66 chown -R root.root $fs
67 }