wok-current view openbox/receipt @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
parents | 3ad63c8fc2f9 |
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 python-xdg"
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 # Disable patch to avoid artefact with round corners (Adwaita theme)
44 # Seem graphical perf issue if disable (report by Ceel)
45 patch -p1 < ${stuff}/openbox-rounded.patch || exit 1
47 # Patch from Arch
48 #patch -p1 < $stuff/openbox-3.5.0-title-matching.patch
49 #patch -p1 < $stuff/openbox-3.5.0-which-2.20.patch
50 #patch -p1 < $stuff/debian-887908.patch
51 #patch -p1 < $stuff/9ed6fdd71890c5cc43747f105382d5677e5d37e7.patch
53 ./configure \
54 --prefix=/usr \
55 --sysconfdir=/etc \
56 --libexecdir=/usr/lib/openbox \
57 $CONFIGURE_ARGS &&
58 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile &&
59 make &&
60 make -j1 DESTDIR=$DESTDIR install &&
61 rm -rf $install/usr/share/applications
62 }
64 # Rules to gen a SliTaz package suitable for Tazpkg.
65 genpkg_rules()
66 {
67 mkdir -p $fs/usr/lib/openbox $fs/usr/share/themes
68 cp -a $install/usr/bin $fs/usr
69 cp -a $install/usr/lib/*.so* $fs/usr/lib
70 cp -a $install/usr/lib/openbox $fs/usr/lib
72 # We dont have GNOME or KDE
73 rm $fs/usr/bin/openbox-gnome-session
74 rm $fs/usr/bin/openbox-kde-session
75 rm $fs/usr/bin/gnome-panel-control
76 rm $fs/usr/bin/gdm-control
77 chmod 0755 $fs/usr/bin/openbox-session
79 # Python XDG script --> openbox-python
80 rm -f $fs/usr/lib/openbox/openbox-xdg-autostart
81 patch -p1 $fs/usr/lib/openbox/openbox-autostart \
82 -i $stuff/openbox-autostart.patch || exit 1
84 # Just Onyx Themes --> openbox-themes
85 cp -a $install/usr/share/themes/Onyx* $fs/usr/share/themes
87 # Xsessions
88 cp -a $stuff/xsessions $fs/usr/share
90 # Pipe menu.
91 cp $stuff/open-folder-menu.sh $fs/usr/lib/openbox
93 # Set perms.
94 chown -R root.root $fs
95 }