wok-stable annotate openbox/receipt @ rev 10210

Up: libgnomeprint to 2.18.8.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri May 20 23:25:00 2011 +0000 (2011-05-20)
parents 1808d3972a36
children 3a1d935572e1
rev   line source
pankso@357 1 # SliTaz package receipt.
pankso@357 2
pankso@357 3 PACKAGE="openbox"
slaxemulator@5404 4 VERSION="3.4.11.1"
pankso@357 5 CATEGORY="x-window"
pankso@357 6 SHORT_DESC="Small-footprint and standard compliant Window Manager."
pankso@9716 7 SUGGESTED="obconf pcmanfm hsetroot slitaz-configs"
pankso@357 8 MAINTAINER="pankso@slitaz.org"
pankso@357 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@357 10 WEB_SITE="http://icculus.org/openbox/"
pankso@4631 11 WGET_URL="http://offload2.icculus.org:9090/openbox/releases/$TARBALL"
jozee@4970 12 TAGS="window-manager wm"
pankso@357 13
pankso@9716 14 DEPENDS="startup-notification pango glib xorg-libX11 fontconfig freetype \
pankso@9716 15 xorg-libXrandr xorg-libXft"
pankso@9716 16 BUILD_DEPENDS="xorg-dev pango-dev glib-dev startup-notification-dev \
pankso@9716 17 xorg-libXft-dev"
pankso@9716 18
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@357 28 --infodir=/usr/share/info \
pankso@357 29 --mandir=/usr/share/man \
pascal@1566 30 $CONFIGURE_ARGS &&
pascal@1566 31 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile &&
pascal@1566 32 make &&
gokhlayeh@8255 33 make -j1 DESTDIR=$PWD/_pkg install
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@684 39 mkdir -p $fs/usr/lib/openbox $fs/usr/share
pankso@357 40 cp -a $_pkg/usr/bin $fs/usr
pankso@357 41 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pankso@357 42 cp -a $_pkg/usr/share/themes $fs/usr/share
pankso@624 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@357 48 chmod 0755 $fs/usr/bin/openbox-session
pankso@624 49
pankso@714 50 # Pipe menu.
pankso@684 51 cp stuff/open-folder-menu.sh $fs/usr/lib/openbox
pankso@624 52
gokhlayeh@5751 53 # Fix an error in openbox-session (version 3.4.11.1)
gokhlayeh@5751 54 sed 's#exec /usr/bin/openbox "$@"#exec /usr/bin/openbox#' \
gokhlayeh@5751 55 -i $fs/usr/bin/openbox-session
gokhlayeh@5751 56
pankso@696 57 # Locale
pankso@696 58 for i in $LOCALE
pankso@696 59 do
pankso@696 60 mkdir -p $fs/usr/share/locale/$i/LC_MESSAGES
pankso@696 61 cp $src/po/$i.gmo \
pankso@696 62 $fs/usr/share/locale/$i/LC_MESSAGES/openbox.mo
pankso@696 63 done
pankso@624 64
pankso@410 65 # Set perms.
pankso@357 66 chown -R root.root $fs
pankso@357 67 }