portapack-mayhem: drop 1.7.4

This commit is contained in:
Rick Farina (Zero_Chaos) 2024-09-15 21:45:01 -04:00
parent a2fc95636d
commit 03c38886be
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
2 changed files with 0 additions and 89 deletions

View file

@ -1,5 +1,3 @@
DIST mayhem_v1.7.4_COPY_TO_SDCARD.zip 517828339 BLAKE2B ac5b08ab521d306a9e21ec91ebeab8c99d57c9e3e36062fa2baebfda965d1412e6fb32a019aa63cc4d4339b2ec694e74e85c870b021b36c3a638156d23d02025 SHA512 3ce6d6fa54b0d6f839ddd6b6c6c291166331239cd314f8f2e48a5ec4f4fb0c08960fc11a60123c8787de59ba60bba147c48dae40185a726a76f28903f93b6119
DIST mayhem_v1.7.4_FIRMWARE.zip 4517374 BLAKE2B 09f44571dc5c8cb5d527f2d0b2e8fd15b3e57f6dafb9020a69eaf85a4829e1d178c1e2f4f6a6d0698574db28713d916d867c6ff879f0de81c060888a477c49ac SHA512 75b7b30e19dd59f31077b27a9199bac7d0b8278bbe8bb53393ed19f469d4dbf4496a8ad0e00158e28330887abd87d292e779c9ffb72f8727e9a45db5c38a9115
DIST mayhem_v2.0.1_COPY_TO_SDCARD.zip 516700350 BLAKE2B 2fb3d59e80e7f7086f37b9a52b084e7c4796c9e7f31cdcc5e9421010a505d9c4639b58ce143d89cd215ef4004406c120d403922cb3b596c0e75671337e5b4ca4 SHA512 e16d80b1a27b492d251379965972c1764dad37f51330fdd6d15cefd01a16d0b8a3d7fabdd3597195b519d4f006829b7fc6aad58bea700bdb902a506c2e834741
DIST mayhem_v2.0.1_FIRMWARE.zip 4578522 BLAKE2B 8585dc4490826097cefe37c909bfc27a3b5f217574c70dd9cb9f7a64a10ac2042f6d1619cc2b8aaf01c2f527bdba40d7f79d0754a315bb8be2acd3622514ffdb SHA512 021821a54c3c354461e1f52f89c1e0e8f9b1f8dc643db6c7800d5a0089f10e01489dff1f257e74929137052dfcac4a4b8541c482c7c9fd654555d1206e6d40c2
DIST portapack-mayhem-2.0.1.tar.gz 199393201 BLAKE2B 1e724305fcdfc4f4bf0bd5244cb866eddf224746a91ca5648e168df52bf24f57f2061aedfec7b8515e2da823561f2711d4d5bdb3ad660a677bff8e3037cbf92a SHA512 246a7539fa73c509d02b64e6068b6c144e891a3900cc6bb9836fd2966020a55626e5f2f174f85e27bf7dbcb2a492d560d2738d70eb140d06fa8b910b5679ccc0

View file

@ -1,87 +0,0 @@
# Copyright 1999-2024 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
DESCRIPTION="Custom firmware for the HackRF SDR + PortaPack H1 addon"
HOMEPAGE="https://github.com/portapack-mayhem/mayhem-firmware"
LICENSE="GPL-2"
SLOT="0"
IUSE="sdcard-files"
if [ "${PV}" == "9999" ]; then
inherit cmake flag-o-matic git-r3 python-any-r1
EGIT_REPO_URI="https://github.com/portapack-mayhem/mayhem-firmware.git"
EGIT_BRANCH="next"
BDEPEND="${PYTHON_DEPS}
sys-devel/gcc-arm-none-eabi
$(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]')"
else
inherit python-utils-r1
KEYWORDS="~amd64 ~x86"
SRC_URI="https://github.com/${PN}/mayhem-firmware/releases/download/v${PV}/mayhem_v${PV}_FIRMWARE.zip
sdcard-files? ( https://github.com/${PN}/mayhem-firmware/releases/download/v${PV}/mayhem_v${PV}_COPY_TO_SDCARD.zip )"
BDEPEND="app-arch/unzip"
fi
RDEPEND=">=net-wireless/hackrf-tools-2015.07.2-r1
>=app-mobilephone/dfu-util-0.7"
python_check_deps() {
python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]"
}
src_unpack() {
if [ "${PV}" = 9999 ]; then
git-r3_src_unpack
else
#upstream distfiles unpack into current directory
mkdir ${P}
pushd ${P}
unpack mayhem_v${PV}_FIRMWARE.zip
if use sdcard-files; then
mkdir sdcard
pushd sdcard
unpack mayhem_v${PV}_COPY_TO_SDCARD.zip
fi
fi
}
src_configure() {
if [ "${PV}" = "9999" ]; then
strip-flags
filter-flags "-march=*" "-mtune=*"
cmake_src_configure
else
true
fi
}
src_compile() {
if [ "${PV}" = "9999" ]; then
V=1 cmake_src_compile
else
true
fi
}
src_install() {
insinto /usr/share/${PN}
if [ "${PV}" = "9999" ]; then
newins "${BUILD_DIR}/firmware/portapack-h1_h2-mayhem.bin" "portapack-h1_h2-mayhem-${PV}.bin"
else
newins "${S}/portapack-h1_h2-mayhem.bin" "portapack-h1_h2-mayhem-${PV}.bin"
fi
use sdcard-files && doins -r "${S}"/sdcard
dodir /usr/share/hackrf
ln -s ../${PN}/portapack-h1_h2-mayhem-${PV}.bin "${ED}/usr/share/hackrf/portapack-h1_h2-mayhem.bin" || die
}
pkg_postint() {
if ! use sdcard-files; then
ewarn "sdcard-files use flag is not enabled but these files are *required* for operation"
ewarn "it is a good idea to copy these files on the sdcard on your portapack from time to time"
fi
}