openbox: fix PR format and use new update-alternatives syntax

* fixes:
  NOTE: recipe openbox-3.5.0-1: task do_package: Started
  WARNING: openbox: Use of ALTERNATIVE_NAME is deprecated, see
  update-alternatives.bbclass for more info.
* bump PE if you care about upgrade path from wrong PR, introduced in
  commit 3becce8504
  Author: Mario Domenech Goulart <mario@ossystems.com.br>
  Date:   Mon Dec 3 16:03:23 2012 +0000

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Martin Jansa 2012-12-10 21:30:28 +01:00
parent 0d1d39da74
commit 49c2321180

View File

@ -9,14 +9,13 @@ SRC_URI = "http://icculus.org/openbox/releases/openbox-${PV}.tar.gz"
SRC_URI[md5sum] = "00441b53cf14c03566c8e82643544ff9"
SRC_URI[sha256sum] = "6fa90016530b3aa6102e254079461977439398531fb23e7ec076ff2c140fea0a"
PR = "1"
PR = "r2"
inherit autotools gettext update-alternatives
ALTERNATIVE_PATH = "${bindir}/openbox"
ALTERNATIVE_NAME = "x-window-manager"
ALTERNATIVE_LINK = "${bindir}/x-window-manager"
ALTERNATIVE_PRIORITY = "10"
ALTERNATIVE_${PN}-core = "x-window-manager"
ALTERNATIVE_TARGET[x-window-manager] = "${bindir}/openbox"
ALTERNATIVE_PRIORITY[x-window-manager] = "10"
EXTRA_OECONF += "--with-plugins=none"