wok-current annotate openbox/receipt @ rev 24097
Up hplip (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Sep 13 17:18:37 2021 +0000 (2021-09-13) |
parents | 4888cf6f4513 |
children | b9659e3c2111 |
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 |
pascal@24071 | 32 current_version() |
pascal@24071 | 33 { |
pascal@24071 | 34 wget -O - http://openbox.org/wiki/Openbox:Download 2>/dev/null | \ |
pascal@24071 | 35 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q" |
pascal@24071 | 36 } |
pascal@24071 | 37 |
pankso@357 | 38 # Rules to configure and make the package. |
pankso@357 | 39 compile_rules() |
pankso@357 | 40 { |
pankso@357 | 41 chmod +x install-sh |
pankso@19864 | 42 patch -p1 < ${stuff}/openbox-rounded.patch || exit 1 |
pankso@357 | 43 ./configure \ |
pankso@357 | 44 --prefix=/usr \ |
pankso@357 | 45 --sysconfdir=/etc \ |
pankso@12467 | 46 --libexecdir=/usr/lib/openbox \ |
pascal@1566 | 47 $CONFIGURE_ARGS && |
pascal@1566 | 48 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile && |
pascal@1566 | 49 make && |
pankso@12467 | 50 make -j1 DESTDIR=$DESTDIR install && |
pankso@12467 | 51 rm -rf $install/usr/share/applications |
pankso@357 | 52 } |
pankso@357 | 53 |
pankso@357 | 54 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@357 | 55 genpkg_rules() |
pankso@357 | 56 { |
pankso@12467 | 57 mkdir -p $fs/usr/lib/openbox $fs/usr/share/themes |
pankso@12467 | 58 cp -a $install/usr/bin $fs/usr |
pankso@12467 | 59 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@12467 | 60 cp -a $install/usr/lib/openbox $fs/usr/lib |
pankso@13564 | 61 |
pankso@357 | 62 # We dont have GNOME or KDE |
pankso@357 | 63 rm $fs/usr/bin/openbox-gnome-session |
pankso@357 | 64 rm $fs/usr/bin/openbox-kde-session |
pankso@357 | 65 rm $fs/usr/bin/gnome-panel-control |
pankso@12467 | 66 rm $fs/usr/bin/gdm-control |
pankso@357 | 67 chmod 0755 $fs/usr/bin/openbox-session |
pankso@13564 | 68 |
pankso@12467 | 69 # Python XDG script --> openbox-python |
pankso@12467 | 70 rm -f $fs/usr/lib/openbox/openbox-xdg-autostart |
pankso@12467 | 71 patch -p1 $fs/usr/lib/openbox/openbox-autostart \ |
pankso@12467 | 72 -i $stuff/openbox-autostart.patch || exit 1 |
pankso@13564 | 73 |
pankso@12467 | 74 # Just Onyx Themes --> openbox-themes |
pankso@12467 | 75 cp -a $install/usr/share/themes/Onyx* $fs/usr/share/themes |
pankso@13564 | 76 |
pankso@12467 | 77 # Xsessions |
pankso@12467 | 78 cp -a $stuff/xsessions $fs/usr/share |
pankso@13564 | 79 |
pankso@714 | 80 # Pipe menu. |
pankso@12467 | 81 cp $stuff/open-folder-menu.sh $fs/usr/lib/openbox |
pankso@624 | 82 |
pankso@410 | 83 # Set perms. |
pankso@357 | 84 chown -R root.root $fs |
pankso@357 | 85 } |