# SliTaz package receipt. PACKAGE="openbox-imlib2" VERSION="3.6.1" SOURCE="openbox" CATEGORY="x-window" SHORT_DESC="Small-footprint and standard compliant Window Manager (Allow icons in menus)." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="http://openbox.org/" WGET_URL="http://openbox.org/dist/openbox/$TARBALL" TAGS="window-manager" PROVIDE="openbox" SUGGESTED="obconf spacefm pcmanfm hsetroot wbar2 conky" DEPENDS="startup-notification pango glib xorg-libX11 fontconfig freetype \ xorg-libXrandr xorg-libXft xorg-libXinerama xorg-libXcursor libxml2 imlib2 \ slitaz-configs" BUILD_DEPENDS="xorg-dev pango-dev glib-dev startup-notification-dev \ xorg-libXft-dev util-linux-uuid-dev libxml2-dev imlib2-dev xcb-util-dev" # What is the latest version available today? current_version() { wget -O - http://openbox.org/wiki/Openbox:Download 2>/dev/null | \ sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|;q" } # Rules to configure and make the package. compile_rules() { chmod +x install-sh patch -p1 < ${stuff}/openbox-rounded.patch || exit 1 ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/openbox \ $CONFIGURE_ARGS && sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile && make && make -j1 DESTDIR=$DESTDIR install && rm -rf $install/usr/share/applications } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib/openbox $fs/usr/share/themes cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/lib/openbox $fs/usr/lib # We dont have GNOME or KDE rm $fs/usr/bin/openbox-gnome-session rm $fs/usr/bin/openbox-kde-session rm $fs/usr/bin/gnome-panel-control rm $fs/usr/bin/gdm-control chmod 0755 $fs/usr/bin/openbox-session # Python XDG script --> openbox-python rm -f $fs/usr/lib/openbox/openbox-xdg-autostart patch -p1 $fs/usr/lib/openbox/openbox-autostart \ -i $stuff/openbox-autostart.patch || exit 1 # Just Onyx Themes --> openbox-themes cp -a $install/usr/share/themes/Onyx* $fs/usr/share/themes # Xsessions cp -a $stuff/xsessions $fs/usr/share # Pipe menu. cp $stuff/open-folder-menu.sh $fs/usr/lib/openbox # Set perms. chown -R root.root $fs }