app-arch/lz5 - 2.0 (gentoo)

Search

Install

Install this version:

emerge -a =app-arch/lz5-2.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-arch/lz5-2.0

Or alternatively:

emerge --autounmask-write -a =app-arch/lz5-2.0

Package Information

Description:
An efficient compressor with very fast decompression
Homepage:
https://github.com/inikep/lz5
License:
GPL-2 BSD-2

Ebuild Details

Version EAPI Keywords Slot
2.0 8 ~amd64 0/2
View Raw Ebuild
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="An efficient compressor with very fast decompression"
HOMEPAGE="https://github.com/inikep/lz5"
SRC_URI="https://github.com/inikep/lz5/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2 BSD-2"
SLOT="0/2"
KEYWORDS="~amd64"

src_prepare() {
	default
	sed -i -e 's/install: lz5$(EXT)/install:/' programs/Makefile || die
	sed -i -e 's/install: lib liblz5.pc/install:/' lib/Makefile || die
}

src_compile() {
	emake -C lib CC="$(tc-getCC)" lib liblz5.pc
	emake -C programs CC="$(tc-getCC)" lz5
}

src_install() {
	emake install DESTDIR="${ED}" PREFIX="/usr" LIBDIR="/usr/$(get_libdir)"
	rm "${ED}"/usr/$(get_libdir)/liblz5.a || die

	einstalldocs
}

Inherited Eclasses

Manifest for 2.0

Type File Size Source URLs
DIST lz5-2.0.tar.gz 207478 bytes https://github.com/inikep/lz5/archive/v2.0.tar.gz