linamh/sci-electronics/minipro/minipro-0.5.ebuild
2022-02-23 19:17:30 +01:00

33 lines
676 B
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit bash-completion-r1 udev
DESCRIPTION="A free and open TL866XX programmer"
HOMEPAGE="https://gitlab.com/DavidGriffith/minipro"
SRC_URI="https://gitlab.com/DavidGriffith/minipro/-/archive/${PV}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="virtual/libusb:1"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}/${P}-libs.patch"
)
src_compile() {
emake PREFIX=/usr
emake library PREFIX=/usr
}
src_install() {
emake install DESTDIR="${D}" PREFIX=/usr
emake install_library DESTDIR="${D}" PREFIX=/usr
dobashcomp bash_completion.d/minipro
}