You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.5 KiB
53 lines
1.5 KiB
5 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
|
|
||
|
PYTHON_COMPAT=( python2_7 )
|
||
|
inherit distutils-r1
|
||
|
|
||
|
DESCRIPTION="The swiss army knife of subGHz"
|
||
|
HOMEPAGE="https://github.com/atlas0fd00m/rfcat.git"
|
||
|
|
||
|
if [ "${PV}" = "9999" ]; then
|
||
|
EGIT_REPO_URI="https://github.com/atlas0fd00m/rfcat.git"
|
||
|
inherit git-r3
|
||
|
KEYWORDS=""
|
||
|
else
|
||
|
DATE="170508"
|
||
|
FIRMWARE_DATE="170313"
|
||
|
COMMIT="109f887fc816021a2cb2875dce62ab9cad02c5f3"
|
||
|
SRC_URI="https://github.com/atlas0fd00m/rfcat/archive/${COMMIT}.tar.gz -> ${P}.tar.gz \
|
||
|
https://bitbucket.org/atlas0fd00m/rfcat/downloads/immeSniff-${DATE}.hex \
|
||
|
https://bitbucket.org/atlas0fd00m/rfcat/downloads/RfCatChronosCCBootloader-${FIRMWARE_DATE}.hex \
|
||
|
https://bitbucket.org/atlas0fd00m/rfcat/downloads/RfCatDonsCCBootloader-${FIRMWARE_DATE}.hex \
|
||
|
https://bitbucket.org/atlas0fd00m/rfcat/downloads/RfCatYS1CCBootloader-${FIRMWARE_DATE}.hex"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
S="${WORKDIR}/${PN}-${COMMIT}"
|
||
|
fi
|
||
|
|
||
|
LICENSE="BSD"
|
||
|
SLOT="0"
|
||
|
IUSE=""
|
||
|
|
||
|
#DEPEND="dev-embedded/sdcc"
|
||
|
#RDEPEND="${DEPEND}"
|
||
|
PDEPEND="dev-python/future[${PYTHON_USEDEP}]"
|
||
|
|
||
|
src_install() {
|
||
|
distutils-r1_src_install
|
||
|
|
||
|
if [ "${PV}" != "9999" ]; then
|
||
|
insinto /usr/share/rfcat
|
||
|
doins "${DISTDIR}"/*.hex
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
if [ "${PV}" = "9999" ]; then
|
||
|
ewarn "Right now, this only installs the rfcat host tools, nothing related to firmware"
|
||
|
else
|
||
|
einfo "Pre-compiled firmwares from upstream are installed in /usr/share/rfcat"
|
||
|
fi
|
||
|
}
|