aboutsummaryrefslogtreecommitdiff
path: root/recipes/realpath/realpath_1.10.bb
blob: c6e8d7f8f51dbc591f5f3d221886c09ad8cedb0d (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
DESCRIPTION = "Return the canonicalized absolute pathname"
SECTION = "utility"
PRIORITY = "optional"
LICENSE = "GPLv2"
PR = "r1"

SRC_URI = "${DEBIAN_MIRROR}/main/r/realpath/realpath_${PV}.tar.gz;name=realpath \
           file://makefile.patch"

SRC_URI[realpath.md5sum] = "1f2b2bceaacadf79162a9cbb5956c3b6"
SRC_URI[realpath.sha256sum] = "72199f9c11d1f9a36b3b9693988b558a167def6b88fa146ea6a7f7223f96c535"

CFLAGS += "-DVERSION=${PV}"

do_install () {
	install -d ${D}${bindir}
	install -p -m 0755 ${S}/realpath ${D}${bindir}/realpath.${PN}
}

pkg_postinst_${PN} () {
	update-alternatives --install ${bindir}/realpath realpath realpath.${PN} 100
}

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