wok-6.x view openbox-imlib2/receipt @ rev 15050
kino: fix genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 12 18:52:35 2013 +0000 (2013-08-12) |
parents | f378aed899f6 |
children | 8e628015090b |
line source
1 # SliTaz package receipt.
3 PACKAGE="openbox-imlib2"
4 VERSION="3.5.0"
5 SOURCE="openbox"
6 CATEGORY="x-window"
7 SHORT_DESC="Small-footprint and standard compliant Window Manager (Allow icons in menus)."
8 SUGGESTED="obconf pcmanfm hsetroot"
9 MAINTAINER="pankso@slitaz.org"
10 LICENSE="GPL2"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WEB_SITE="http://openbox.org/"
13 WGET_URL="http://openbox.org/dist/openbox/$TARBALL"
14 TAGS="window-manager wm"
15 PROVIDE="openbox"
17 DEPENDS="startup-notification pango glib xorg-libX11 fontconfig freetype \
18 xorg-libXrandr xorg-libXft libxml2 imlib2 slitaz-configs"
19 BUILD_DEPENDS="xorg-dev pango-dev glib-dev startup-notification-dev \
20 xorg-libXft-dev util-linux-uuid-dev libxml2-dev imlib2-dev"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 chmod +x install-sh
27 ./configure \
28 --prefix=/usr \
29 --sysconfdir=/etc \
30 --libexecdir=/usr/lib/openbox \
31 $CONFIGURE_ARGS &&
32 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile &&
33 make &&
34 make -j1 DESTDIR=$DESTDIR install &&
35 rm -rf $install/usr/share/applications
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib/openbox $fs/usr/share/themes
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 cp -a $install/usr/lib/openbox $fs/usr/lib
46 # We dont have GNOME or KDE
47 rm $fs/usr/bin/openbox-gnome-session
48 rm $fs/usr/bin/openbox-kde-session
49 rm $fs/usr/bin/gnome-panel-control
50 rm $fs/usr/bin/gdm-control
51 chmod 0755 $fs/usr/bin/openbox-session
53 # Python XDG script --> openbox-python
54 rm -f $fs/usr/lib/openbox/openbox-xdg-autostart
55 patch -p1 $fs/usr/lib/openbox/openbox-autostart \
56 -i $stuff/openbox-autostart.patch || exit 1
58 # Just Onyx Themes --> openbox-themes
59 cp -a $install/usr/share/themes/Onyx* $fs/usr/share/themes
61 # Xsessions
62 cp -a $stuff/xsessions $fs/usr/share
64 # Pipe menu.
65 cp $stuff/open-folder-menu.sh $fs/usr/lib/openbox
67 # Set perms.
68 chown -R root.root $fs
69 }