wok annotate openbox/receipt @ rev 19392

Up vmtouch (1.1.0)
author Paul Issott <paul@slitaz.org>
date Sat Aug 27 20:53:04 2016 +0100 (2016-08-27)
parents 5d53e8ccbc8d
children 1c458fa173fb
rev   line source
pankso@357 1 # SliTaz package receipt.
pankso@357 2
pankso@357 3 PACKAGE="openbox"
devl547@18340 4 VERSION="3.6.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@15000 8 LICENSE="GPL2"
pankso@357 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@12467 10 WEB_SITE="http://openbox.org/"
pankso@12467 11 WGET_URL="http://openbox.org/dist/openbox/$TARBALL"
al@17501 12 TAGS="window-manager"
pankso@16162 13 HOST_ARCH="i486 arm"
pankso@357 14
pankso@16169 15 SUGGESTED="obconf spacefm pcmanfm hsetroot wbar2 conky"
pankso@16162 16 DEPENDS="pango glib xorg-libX11 fontconfig freetype xorg-libXrandr \
pankso@16162 17 xorg-libXft xorg-libXinerama xorg-libXcursor libxml2 slitaz-configs"
pankso@16162 18 BUILD_DEPENDS=" pango-dev glib-dev xorg-libXft-dev util-linux-uuid-dev \
pankso@16162 19 libxml2-dev"
pankso@16162 20
pankso@16162 21 # Handle slitaz arch: /etc/slitaz/slitaz.conf
pankso@16162 22 case "$SLITAZ_ARCH" in
pankso@16162 23 i?86) DEPENDS="$DEPENDS startup-notification" ;;
pankso@16169 24 arm*) DEPENDS="$DEPENDS hsetroot tint2" ;;
pankso@16162 25 esac
pankso@16162 26
pankso@16162 27 # Handle cross compilation
pankso@16162 28 case "$ARCH" in
pankso@16162 29 i?86) BUILD_DEPENDS="$BUILD_DEPENDS startup-notification-dev xorg-dev" ;;
pankso@16162 30 esac
pankso@9716 31
pankso@357 32 # Rules to configure and make the package.
pankso@357 33 compile_rules()
pankso@357 34 {
pankso@357 35 chmod +x install-sh
pankso@357 36 ./configure \
pankso@357 37 --prefix=/usr \
pankso@357 38 --sysconfdir=/etc \
pankso@12467 39 --libexecdir=/usr/lib/openbox \
pascal@1566 40 $CONFIGURE_ARGS &&
pascal@1566 41 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile &&
pascal@1566 42 make &&
pankso@12467 43 make -j1 DESTDIR=$DESTDIR install &&
pankso@12467 44 rm -rf $install/usr/share/applications
pankso@357 45 }
pankso@357 46
pankso@357 47 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@357 48 genpkg_rules()
pankso@357 49 {
pankso@12467 50 mkdir -p $fs/usr/lib/openbox $fs/usr/share/themes
pankso@12467 51 cp -a $install/usr/bin $fs/usr
pankso@12467 52 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@12467 53 cp -a $install/usr/lib/openbox $fs/usr/lib
pankso@13564 54
pankso@357 55 # We dont have GNOME or KDE
pankso@357 56 rm $fs/usr/bin/openbox-gnome-session
pankso@357 57 rm $fs/usr/bin/openbox-kde-session
pankso@357 58 rm $fs/usr/bin/gnome-panel-control
pankso@12467 59 rm $fs/usr/bin/gdm-control
pankso@357 60 chmod 0755 $fs/usr/bin/openbox-session
pankso@13564 61
pankso@12467 62 # Python XDG script --> openbox-python
pankso@12467 63 rm -f $fs/usr/lib/openbox/openbox-xdg-autostart
pankso@12467 64 patch -p1 $fs/usr/lib/openbox/openbox-autostart \
pankso@12467 65 -i $stuff/openbox-autostart.patch || exit 1
pankso@13564 66
pankso@12467 67 # Just Onyx Themes --> openbox-themes
pankso@12467 68 cp -a $install/usr/share/themes/Onyx* $fs/usr/share/themes
pankso@13564 69
pankso@12467 70 # Xsessions
pankso@12467 71 cp -a $stuff/xsessions $fs/usr/share
pankso@13564 72
pankso@714 73 # Pipe menu.
pankso@12467 74 cp $stuff/open-folder-menu.sh $fs/usr/lib/openbox
pankso@624 75
pankso@410 76 # Set perms.
pankso@357 77 chown -R root.root $fs
pankso@357 78 }