From 14c2ce14d5db9ac0c1e9042ed8fb8e30dbbd4b34 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Thu, 11 Nov 2010 18:32:59 -0700 Subject: bc: Use u-a on 'dc' Signed-off-by: Tom Rini --- recipes/bc/bc_1.06.bb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/recipes/bc/bc_1.06.bb b/recipes/bc/bc_1.06.bb index d95fcad9f6..151ab1c27f 100644 --- a/recipes/bc/bc_1.06.bb +++ b/recipes/bc/bc_1.06.bb @@ -2,8 +2,22 @@ DESCRIPTION = "An arbitrary precision calculator language." SECTION = "console/utils" SRC_URI = "${GNU_MIRROR}/bc/bc-${PV}.tar.gz" LICENSE = "GPL" +PR = "r1" inherit autotools +do_install () { + autotools_do_install + mv ${D}${bindir}/dc ${D}${bindir}/dc.${PN} +} + +pkg_postinst_${PN} () { + update-alternatives --install ${bindir}/dc dc dc.${PN} 100 +} + +pkg_prerm_${PN} () { + update-alternatives --remove dc dc.${PN} +} + SRC_URI[md5sum] = "d44b5dddebd8a7a7309aea6c36fda117" SRC_URI[sha256sum] = "4ef6d9f17c3c0d92d8798e35666175ecd3d8efac4009d6457b5c99cea72c0e33" -- cgit 1.2.3-korg