wok-6.x annotate openbox/receipt @ rev 15727
Up;openbox(3.5.2)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Thu Dec 26 20:57:05 2013 +0100 (2013-12-26) |
parents | 380ffe05937a |
children | 6f9125b9e412 |
rev | line source |
---|---|
pankso@357 | 1 # SliTaz package receipt. |
pankso@357 | 2 |
pankso@357 | 3 PACKAGE="openbox" |
erjo@15727 | 4 VERSION="3.5.2" |
pankso@357 | 5 CATEGORY="x-window" |
pankso@357 | 6 SHORT_DESC="Small-footprint and standard compliant Window Manager." |
pascal@14757 | 7 SUGGESTED="obconf spacefm hsetroot" |
pankso@357 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 9 LICENSE="GPL2" |
pankso@357 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@12467 | 11 WEB_SITE="http://openbox.org/" |
pankso@12467 | 12 WGET_URL="http://openbox.org/dist/openbox/$TARBALL" |
jozee@4970 | 13 TAGS="window-manager wm" |
pankso@357 | 14 |
pankso@9716 | 15 DEPENDS="startup-notification pango glib xorg-libX11 fontconfig freetype \ |
pankso@13564 | 16 xorg-libXrandr xorg-libXft libxml2 slitaz-configs" |
pankso@9716 | 17 BUILD_DEPENDS="xorg-dev pango-dev glib-dev startup-notification-dev \ |
pankso@13564 | 18 xorg-libXft-dev util-linux-uuid-dev libxml2-dev" |
pankso@9716 | 19 |
pankso@357 | 20 # Rules to configure and make the package. |
pankso@357 | 21 compile_rules() |
pankso@357 | 22 { |
pankso@357 | 23 cd $src |
pankso@357 | 24 chmod +x install-sh |
pankso@357 | 25 ./configure \ |
pankso@357 | 26 --prefix=/usr \ |
pankso@357 | 27 --sysconfdir=/etc \ |
pankso@12467 | 28 --libexecdir=/usr/lib/openbox \ |
pascal@1566 | 29 $CONFIGURE_ARGS && |
pascal@1566 | 30 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile && |
pascal@1566 | 31 make && |
pankso@12467 | 32 make -j1 DESTDIR=$DESTDIR install && |
pankso@12467 | 33 rm -rf $install/usr/share/applications |
pankso@357 | 34 } |
pankso@357 | 35 |
pankso@357 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@357 | 37 genpkg_rules() |
pankso@357 | 38 { |
pankso@12467 | 39 mkdir -p $fs/usr/lib/openbox $fs/usr/share/themes |
pankso@12467 | 40 cp -a $install/usr/bin $fs/usr |
pankso@12467 | 41 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@12467 | 42 cp -a $install/usr/lib/openbox $fs/usr/lib |
pankso@13564 | 43 |
pankso@357 | 44 # We dont have GNOME or KDE |
pankso@357 | 45 rm $fs/usr/bin/openbox-gnome-session |
pankso@357 | 46 rm $fs/usr/bin/openbox-kde-session |
pankso@357 | 47 rm $fs/usr/bin/gnome-panel-control |
pankso@12467 | 48 rm $fs/usr/bin/gdm-control |
pankso@357 | 49 chmod 0755 $fs/usr/bin/openbox-session |
pankso@13564 | 50 |
pankso@12467 | 51 # Python XDG script --> openbox-python |
pankso@12467 | 52 rm -f $fs/usr/lib/openbox/openbox-xdg-autostart |
pankso@12467 | 53 patch -p1 $fs/usr/lib/openbox/openbox-autostart \ |
pankso@12467 | 54 -i $stuff/openbox-autostart.patch || exit 1 |
pankso@13564 | 55 |
pankso@12467 | 56 # Just Onyx Themes --> openbox-themes |
pankso@12467 | 57 cp -a $install/usr/share/themes/Onyx* $fs/usr/share/themes |
pankso@13564 | 58 |
pankso@12467 | 59 # Xsessions |
pankso@12467 | 60 cp -a $stuff/xsessions $fs/usr/share |
pankso@13564 | 61 |
pankso@714 | 62 # Pipe menu. |
pankso@12467 | 63 cp $stuff/open-folder-menu.sh $fs/usr/lib/openbox |
pankso@624 | 64 |
pankso@410 | 65 # Set perms. |
pankso@357 | 66 chown -R root.root $fs |
pankso@357 | 67 } |