wok-6.x view openbox-imlib2/receipt @ rev 24652
updated i3 and i3-man (4.19.2 -> 4.20.1)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 11 06:27:26 2022 +0100 (2022-03-11) |
parents | 4888cf6f4513 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="openbox-imlib2"
4 VERSION="3.6.1"
5 SOURCE="openbox"
6 CATEGORY="x-window"
7 SHORT_DESC="Small-footprint and standard compliant Window Manager (Allow icons in menus)."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://openbox.org/"
12 WGET_URL="http://openbox.org/dist/openbox/$TARBALL"
13 TAGS="window-manager"
14 PROVIDE="openbox"
16 SUGGESTED="obconf spacefm pcmanfm hsetroot wbar2 conky"
17 DEPENDS="startup-notification pango glib xorg-libX11 fontconfig freetype \
18 xorg-libXrandr xorg-libXft xorg-libXinerama xorg-libXcursor libxml2 imlib2 \
19 slitaz-configs"
20 BUILD_DEPENDS="xorg-dev pango-dev glib-dev startup-notification-dev \
21 xorg-libXft-dev util-linux-uuid-dev libxml2-dev imlib2-dev xcb-util-dev"
23 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - http://openbox.org/wiki/Openbox:Download 2>/dev/null | \
27 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|;q"
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 chmod +x install-sh
34 patch -p1 < ${stuff}/openbox-rounded.patch || exit 1
35 ./configure \
36 --prefix=/usr \
37 --sysconfdir=/etc \
38 --libexecdir=/usr/lib/openbox \
39 $CONFIGURE_ARGS &&
40 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile &&
41 make &&
42 make -j1 DESTDIR=$DESTDIR install &&
43 rm -rf $install/usr/share/applications
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/lib/openbox $fs/usr/share/themes
50 cp -a $install/usr/bin $fs/usr
51 cp -a $install/usr/lib/*.so* $fs/usr/lib
52 cp -a $install/usr/lib/openbox $fs/usr/lib
54 # We dont have GNOME or KDE
55 rm $fs/usr/bin/openbox-gnome-session
56 rm $fs/usr/bin/openbox-kde-session
57 rm $fs/usr/bin/gnome-panel-control
58 rm $fs/usr/bin/gdm-control
59 chmod 0755 $fs/usr/bin/openbox-session
61 # Python XDG script --> openbox-python
62 rm -f $fs/usr/lib/openbox/openbox-xdg-autostart
63 patch -p1 $fs/usr/lib/openbox/openbox-autostart \
64 -i $stuff/openbox-autostart.patch || exit 1
66 # Just Onyx Themes --> openbox-themes
67 cp -a $install/usr/share/themes/Onyx* $fs/usr/share/themes
69 # Xsessions
70 cp -a $stuff/xsessions $fs/usr/share
72 # Pipe menu.
73 cp $stuff/open-folder-menu.sh $fs/usr/lib/openbox
75 # Set perms.
76 chown -R root.root $fs
77 }