summaryrefslogtreecommitdiffstats
path: root/meta/packages/sed/sed_4.1.2.bb
blob: 09bd3e18ccd992ed9910025997e483100d81bf19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
DESCRIPTION = "sed is a Stream EDitor."
HOMEPAGE = "http://www.gnu.org/software/sed/"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
                    file://sed/sed.h;beginline=1;endline=17;md5=e00ffd1837f298439a214fd197f6a407"
SECTION = "console/utils"
PR = "r3"

DEPENDS = "gettext"

SRC_URI = "${GNU_MIRROR}/sed/sed-${PV}.tar.gz \
           file://fix_return_type.patch"

inherit autotools

do_install () {
	autotools_do_install
	install -d ${D}${base_bindir}
	mv ${D}${bindir}/sed ${D}${base_bindir}/sed.${PN}
}


pkg_postinst_${PN} () {
	update-alternatives --install ${base_bindir}/sed sed sed.${PN} 100
}


pkg_prerm_${PN} () {
	update-alternatives --remove sed sed.${PN}
}

BBCLASSEXTEND = "native"