aboutsummaryrefslogtreecommitdiff
path: root/recipes/bc/bc_1.06.bb
blob: 151ab1c27f1bcb11cd69a76c3e326a5811de9d02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"