wok-6.x view openbox/receipt @ rev 24767

Up zbar (0.23.90)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 19 10:01:29 2022 +0000 (2022-03-19)
parents ee53899c6189
children
line source
1 # SliTaz package receipt.
3 PACKAGE="openbox"
4 VERSION="3.6.1"
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"
13 HOST_ARCH="i486 arm"
15 SUGGESTED="obconf spacefm pcmanfm hsetroot wbar2 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 xcb-util-dev"
21 # Handle slitaz arch: /etc/slitaz/slitaz.conf
22 case "$SLITAZ_ARCH" in
23 i?86) DEPENDS="$DEPENDS startup-notification" ;;
24 arm*) DEPENDS="$DEPENDS hsetroot tint2" ;;
25 esac
27 # Handle cross compilation
28 case "$ARCH" in
29 i?86) BUILD_DEPENDS="$BUILD_DEPENDS startup-notification-dev xorg-dev" ;;
30 esac
32 # What is the latest version available today?
33 current_version()
34 {
35 wget -O - http://openbox.org/wiki/Openbox:Download 2>/dev/null | \
36 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
37 }
39 # Rules to configure and make the package.
40 compile_rules()
41 {
42 chmod +x install-sh
43 patch -p1 < ${stuff}/openbox-rounded.patch || exit 1
44 ./configure \
45 --prefix=/usr \
46 --sysconfdir=/etc \
47 --libexecdir=/usr/lib/openbox \
48 $CONFIGURE_ARGS &&
49 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile &&
50 make &&
51 make -j1 DESTDIR=$DESTDIR install &&
52 rm -rf $install/usr/share/applications
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 mkdir -p $fs/usr/lib/openbox $fs/usr/share/themes
59 cp -a $install/usr/bin $fs/usr
60 cp -a $install/usr/lib/*.so* $fs/usr/lib
61 cp -a $install/usr/lib/openbox $fs/usr/lib
63 # We dont have GNOME or KDE
64 rm $fs/usr/bin/openbox-gnome-session
65 rm $fs/usr/bin/openbox-kde-session
66 rm $fs/usr/bin/gnome-panel-control
67 rm $fs/usr/bin/gdm-control
68 chmod 0755 $fs/usr/bin/openbox-session
70 # Python XDG script --> openbox-python
71 rm -f $fs/usr/lib/openbox/openbox-xdg-autostart
72 patch -p1 $fs/usr/lib/openbox/openbox-autostart \
73 -i $stuff/openbox-autostart.patch || exit 1
75 # Just Onyx Themes --> openbox-themes
76 cp -a $install/usr/share/themes/Onyx* $fs/usr/share/themes
78 # Xsessions
79 cp -a $stuff/xsessions $fs/usr/share
81 # Pipe menu.
82 cp $stuff/open-folder-menu.sh $fs/usr/lib/openbox
84 # Set perms.
85 chown -R root.root $fs
86 }