linamh/sci-electronics/minipro/minipro-0.5.ebuild

40 lines
787 B
Bash
Raw Permalink Normal View History

# Copyright 1999-2022 Gentoo Authors
2021-06-30 18:45:43 +02:00
# Distributed under the terms of the GNU General Public License v2
2023-07-20 20:28:34 +02:00
EAPI=8
2021-06-30 18:45:43 +02:00
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}"
2022-02-23 19:17:30 +01:00
PATCHES=(
"${FILESDIR}/${P}-libs.patch"
)
2021-06-30 18:45:43 +02:00
src_compile() {
emake PREFIX=/usr
emake library PREFIX=/usr
}
src_install() {
2022-03-20 18:42:52 +01:00
emake install DESTDIR="${D}" PREFIX=/usr UDEV_DIR=$(get_udevdir)
emake install_library DESTDIR="${D}" PREFIX=/usr UDEV_DIR=$(get_udevdir)
2021-06-30 18:45:43 +02:00
dobashcomp bash_completion.d/minipro
2022-11-24 21:26:54 +01:00
}
pkg_postinst() {
2022-03-20 18:42:52 +01:00
udev_reload
2021-06-30 18:45:43 +02:00
}
2022-11-24 21:26:54 +01:00
pkg_postrm() {
udev_reload
}