wok-6.x annotate openbox-imlib2/receipt @ rev 16662

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