wok-6.x annotate openbox/receipt @ rev 8255
Fix: pcmanfm & openbox need j1 to make install well
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sat Jan 29 17:17:37 2011 +0100 (2011-01-29) |
parents | 6d656c48fdcf |
children | 9280727ea775 |
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@357 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@5004 | 8 DEPENDS="startup-notification pango glib xorg-libX11 fontconfig freetype \ |
pascal@5004 | 9 xorg-libXrandr" |
pankso@2145 | 10 SUGGESTED="obconf pcmanfm hsetroot slitaz-configs" |
pankso@357 | 11 BUILD_DEPENDS="xorg-dev pango-dev glib-dev startup-notification-dev" |
pankso@357 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@357 | 13 WEB_SITE="http://icculus.org/openbox/" |
pankso@4631 | 14 WGET_URL="http://offload2.icculus.org:9090/openbox/releases/$TARBALL" |
jozee@4970 | 15 TAGS="window-manager wm" |
pankso@357 | 16 |
pankso@357 | 17 # Rules to configure and make the package. |
pankso@357 | 18 compile_rules() |
pankso@357 | 19 { |
pankso@357 | 20 cd $src |
pankso@357 | 21 chmod +x install-sh |
pankso@357 | 22 ./configure \ |
pankso@357 | 23 --prefix=/usr \ |
pankso@357 | 24 --sysconfdir=/etc \ |
pankso@357 | 25 --infodir=/usr/share/info \ |
pankso@357 | 26 --mandir=/usr/share/man \ |
pascal@1566 | 27 $CONFIGURE_ARGS && |
pascal@1566 | 28 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile && |
pascal@1566 | 29 make && |
gokhlayeh@8255 | 30 make -j1 DESTDIR=$PWD/_pkg install |
pankso@357 | 31 } |
pankso@357 | 32 |
pankso@357 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@357 | 34 genpkg_rules() |
pankso@357 | 35 { |
pankso@684 | 36 mkdir -p $fs/usr/lib/openbox $fs/usr/share |
pankso@357 | 37 cp -a $_pkg/usr/bin $fs/usr |
pankso@357 | 38 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@357 | 39 cp -a $_pkg/usr/share/themes $fs/usr/share |
pankso@624 | 40 |
pankso@357 | 41 # We dont have GNOME or KDE |
pankso@357 | 42 rm $fs/usr/bin/openbox-gnome-session |
pankso@357 | 43 rm $fs/usr/bin/openbox-kde-session |
pankso@357 | 44 rm $fs/usr/bin/gnome-panel-control |
pankso@357 | 45 chmod 0755 $fs/usr/bin/openbox-session |
pankso@624 | 46 |
pankso@714 | 47 # Pipe menu. |
pankso@684 | 48 cp stuff/open-folder-menu.sh $fs/usr/lib/openbox |
pankso@624 | 49 |
gokhlayeh@5751 | 50 # Fix an error in openbox-session (version 3.4.11.1) |
gokhlayeh@5751 | 51 sed 's#exec /usr/bin/openbox "$@"#exec /usr/bin/openbox#' \ |
gokhlayeh@5751 | 52 -i $fs/usr/bin/openbox-session |
gokhlayeh@5751 | 53 |
pankso@696 | 54 # Locale |
pankso@696 | 55 for i in $LOCALE |
pankso@696 | 56 do |
pankso@696 | 57 mkdir -p $fs/usr/share/locale/$i/LC_MESSAGES |
pankso@696 | 58 cp $src/po/$i.gmo \ |
pankso@696 | 59 $fs/usr/share/locale/$i/LC_MESSAGES/openbox.mo |
pankso@696 | 60 done |
pankso@624 | 61 |
pankso@410 | 62 # Set perms. |
pankso@357 | 63 chown -R root.root $fs |
pankso@357 | 64 } |