wok annotate openbox/receipt @ rev 20650

retawq: regenerate mo files (Aleksej) again
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 12 12:33:21 2019 +0100 (2019-01-12)
parents 1c458fa173fb
children ee53899c6189
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 \
pascal@19459 19 libxml2-dev xcb-util-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@19864 36 patch -p1 < ${stuff}/openbox-rounded.patch || exit 1
pankso@357 37 ./configure \
pankso@357 38 --prefix=/usr \
pankso@357 39 --sysconfdir=/etc \
pankso@12467 40 --libexecdir=/usr/lib/openbox \
pascal@1566 41 $CONFIGURE_ARGS &&
pascal@1566 42 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile &&
pascal@1566 43 make &&
pankso@12467 44 make -j1 DESTDIR=$DESTDIR install &&
pankso@12467 45 rm -rf $install/usr/share/applications
pankso@357 46 }
pankso@357 47
pankso@357 48 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@357 49 genpkg_rules()
pankso@357 50 {
pankso@12467 51 mkdir -p $fs/usr/lib/openbox $fs/usr/share/themes
pankso@12467 52 cp -a $install/usr/bin $fs/usr
pankso@12467 53 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@12467 54 cp -a $install/usr/lib/openbox $fs/usr/lib
pankso@13564 55
pankso@357 56 # We dont have GNOME or KDE
pankso@357 57 rm $fs/usr/bin/openbox-gnome-session
pankso@357 58 rm $fs/usr/bin/openbox-kde-session
pankso@357 59 rm $fs/usr/bin/gnome-panel-control
pankso@12467 60 rm $fs/usr/bin/gdm-control
pankso@357 61 chmod 0755 $fs/usr/bin/openbox-session
pankso@13564 62
pankso@12467 63 # Python XDG script --> openbox-python
pankso@12467 64 rm -f $fs/usr/lib/openbox/openbox-xdg-autostart
pankso@12467 65 patch -p1 $fs/usr/lib/openbox/openbox-autostart \
pankso@12467 66 -i $stuff/openbox-autostart.patch || exit 1
pankso@13564 67
pankso@12467 68 # Just Onyx Themes --> openbox-themes
pankso@12467 69 cp -a $install/usr/share/themes/Onyx* $fs/usr/share/themes
pankso@13564 70
pankso@12467 71 # Xsessions
pankso@12467 72 cp -a $stuff/xsessions $fs/usr/share
pankso@13564 73
pankso@714 74 # Pipe menu.
pankso@12467 75 cp $stuff/open-folder-menu.sh $fs/usr/lib/openbox
pankso@624 76
pankso@410 77 # Set perms.
pankso@357 78 chown -R root.root $fs
pankso@357 79 }