app-arch/lz5: Initial version

Package-Manager: Portage-2.3.3, Repoman-2.3.1
This commit is contained in:
Manuel Rüger
2017-02-22 13:22:20 +01:00
parent c8a113a2db
commit 2f36d2e213
3 changed files with 48 additions and 0 deletions

1
app-arch/lz5/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST lz5-2.0.tar.gz 207478 SHA256 9d26494da492a9fd79b3baf93512a543f450b169bae01067354bd0179a5e3ede SHA512 be304d4fe95ff237420cdc054ce7751c5b51e9b438f6cfcb3189e138909331175201cf77615d289d4ea016d66118592794b961ea07c318f477a27263eff2b82e WHIRLPOOL edc1aac3b63fd654783ea8d50f836e0c5faf331a136bdf257a279582db7a144058a99f5434c5cb6bc6b80a75808c1efe246277e5ff12a085a88618bcc225e6e1

View File

@@ -0,0 +1,34 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
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"
IUSE="static-libs"
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 -Clib CC="$(tc-getCC)" lib liblz5.pc
emake -Cprograms CC="$(tc-getCC)" lz5
}
src_install(){
emake install DESTDIR="${D}" PREFIX="/usr" LIBDIR="/usr/$(get_libdir)"
if ! use static-libs; then
rm "${D}"/usr/$(get_libdir)/liblz5.a || die
fi
}

13
app-arch/lz5/metadata.xml Normal file
View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<longdescription>
</longdescription>
<maintainer type="person">
<email>mrueg@gentoo.org</email>
<name>Manuel Rüger</name>
</maintainer>
<upstream>
<remote-id type="github">cesanta/docker_auth</remote-id>
</upstream>
</pkgmetadata>