summaryrefslogtreecommitdiff
path: root/org.handhelds.familiar/packages/gzip/gzip_1.3.5-15.bb
blob: 0c3bd82fe950c78ec4e7e51ea3174e2b878f6099 (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
33
34
35
DESCRIPTION = "The GNU compression utility"
LICENSE = "GPL"
SECTION = "console/utils"
PRIORITY = "required"
PR = "r1"

RRECOMMENDS_${PN} = "less"

inherit autotools debian-vampyre

SRC_URI += "file://configure.patch;patch=1"

base_bindir_apps = "gunzip gzip zcat"

do_install () {
	autotools_do_install
	# Rename and move files into /bin (FHS)
	install -d ${D}${base_bindir}
	for i in ${base_bindir_apps}; do
		mv ${D}${bindir}/$i ${D}${base_bindir}/$i.${PN}
	done
}

pkg_postinst_${PN} () {
	for i in ${base_bindir_apps}; do
		update-alternatives --install ${base_bindir}/$i $i $i.${PN} 100
	done
}

pkg_prerm_${PN} () {
	for i in ${base_bindir_apps}; do
		update-alternatives --remove $i $i.${PN}
	done
}