blob: 9c7bffdf4ee411f82388d240c3aa76558b8078b0 (
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
|
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="data compression library for embedded/real-time systems"
HOMEPAGE="https://github.com/atomicobject/heatshrink"
if [[ "${PV}" == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/atomicobject/${PN}.git"
else
inherit verify-sig
SRC_URI="https://github.com/atomicobject/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="ISC"
SLOT="0"
PATCHES=(
"${FILESDIR}/Makefile.patch"
)
src_install() {
local MY_ED="${ED}/usr"
mkdir "${MY_ED%/}"{,/bin,/include} || die
emake PREFIX="${MY_ED%/}/" install
}
|