blob: 0decc4a1dc625ec4ead48c7d6daca325aef6e416 (
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
|
DESCRIPTION = "A (de)compression library for the ZIP format"
SECTION = "console/utils"
LICENSE = "Info-ZIP"
PR = "r2"
SRC_URI = "${SOURCEFORGE_MIRROR}/project/infozip/UnZip%205.x%20and%20earlier/5.52/unzip${PV}.tar.gz"
S = "${WORKDIR}/unzip-5.52"
BBCLASSEXTEND = "native"
NATIVE_INSTALL_WORKS = "1"
EXTRA_OEMAKE += "'LD=${CCLD} ${LDFLAGS}'"
do_compile() {
oe_runmake -f unix/Makefile generic
}
do_install() {
oe_runmake -f unix/Makefile install prefix=${D}${prefix}
install -d ${D}${mandir}
mv ${D}${prefix}/man/* ${D}${mandir}
mv ${D}${bindir}/unzip ${D}${bindir}/unzip.${PN}
}
pkg_postinst_${PN} () {
update-alternatives --install ${bindir}/unzip unzip unzip.${PN} 100
}
pkg_prerm_${PN} () {
update-alternatives --remove unzip unzip.${PN}
}
SRC_URI[md5sum] = "9d23919999d6eac9217d1f41472034a9"
SRC_URI[sha256sum] = "145d95e2ef1ef9add2e3c97d1340907e33ab8749eb1235372e7f0b7af600a8e9"
|