holgersson-overlay/sys-power/uhubctl/uhubctl-9999.ebuild
Nils Freydank d2fec62a0d
sys-power/uhubctl: Add new package version 2.3.0 (and live)
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Manifest-Sign-Key: 00EFD31F1B60D5DBADB831C1C0ECE6960E54475B
Signed-off-by: Nils Freydank <holgersson@posteo.de>
2021-02-06 15:27:55 +01:00

29 lines
576 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="USB hub per-port power control"
HOMEPAGE="https://github.com/mvp/uhubctl"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EIGT_REPO_URI="${HOMEPAGE}"
else
SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~x86"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE=""
DEPEND="virtual/libusb:1"
RDEPEND="${DEPEND}"
src_prepare() {
sed -i "s#\$(shell git describe --abbrev=4 --dirty --always --tags)#${PV}#" Makefile || die
default
}