diff options
Diffstat (limited to 'app-arch/lz5')
-rw-r--r-- | app-arch/lz5/Manifest | 3 | ||||
-rw-r--r-- | app-arch/lz5/lz5-2.0.ebuild | 33 | ||||
-rw-r--r-- | app-arch/lz5/metadata.xml | 8 |
3 files changed, 44 insertions, 0 deletions
diff --git a/app-arch/lz5/Manifest b/app-arch/lz5/Manifest new file mode 100644 index 000000000000..ff7c1f87acb5 --- /dev/null +++ b/app-arch/lz5/Manifest @@ -0,0 +1,3 @@ +DIST lz5-2.0.tar.gz 207478 SHA256 9d26494da492a9fd79b3baf93512a543f450b169bae01067354bd0179a5e3ede SHA512 be304d4fe95ff237420cdc054ce7751c5b51e9b438f6cfcb3189e138909331175201cf77615d289d4ea016d66118592794b961ea07c318f477a27263eff2b82e WHIRLPOOL edc1aac3b63fd654783ea8d50f836e0c5faf331a136bdf257a279582db7a144058a99f5434c5cb6bc6b80a75808c1efe246277e5ff12a085a88618bcc225e6e1 +EBUILD lz5-2.0.ebuild 832 SHA256 23c41593eb8173b9bff1cfd7cf8b6dc1f2d89866ebdd8b214d2a1c01c1891f67 SHA512 a5df64cee6f516ea011bbd88fdb941367d29a6b6a6068e99ba108217cb40e57ff3116961d0da188e66fdb183232e1f8ecb7f222767b99f086cd7ab7dbbc62637 WHIRLPOOL db5679b31380fce2d7ad91db7772db3aba214433b11394f8de38028b8dc1e049feafdf2cd10bffe423cbb60725e27043e3872c47432bbfa5aa3e2fb6680b5c52 +MISC metadata.xml 242 SHA256 1a3eec5e968b056853c354554efa7dbeda64a2a27edddee62134298e2e25b9fb SHA512 8f5562898c2a92f16bfe6b66dc5fde18195f65dbfee8719ec2a3653006046c42867207f60ba682a34229aee5dcc940496eabf783ca213b89c7f96fc20f81e8c2 WHIRLPOOL 0d8539888b00bc33411d5b4e9e39ba3af9eaee0c1e1728ecfa789f34dff567b807d471b6fe466360e7cc5c6f0e2225dbb4998345c7c7c71f1550b68cc08b8474 diff --git a/app-arch/lz5/lz5-2.0.ebuild b/app-arch/lz5/lz5-2.0.ebuild new file mode 100644 index 000000000000..1e20502cc3bb --- /dev/null +++ b/app-arch/lz5/lz5-2.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} diff --git a/app-arch/lz5/metadata.xml b/app-arch/lz5/metadata.xml new file mode 100644 index 000000000000..dffa8fbd23c4 --- /dev/null +++ b/app-arch/lz5/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="github">inikep/lz5</remote-id> + </upstream> +</pkgmetadata> |