mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-19 13:20:57 +02:00
portapack-mayhem: drop 1.3.1
This commit is contained in:
parent
d18cee2d84
commit
1c6640d894
2 changed files with 0 additions and 81 deletions
|
|
@ -1,4 +1,2 @@
|
|||
DIST mayhem_v1.3.1_COPY_TO_SDCARD.7z 492947796 BLAKE2B 61ae3b8533d36e39dfa6aae7521c8dd41f58e8c3cb061c7cfa8afd780faabd8fb5101f72aaa5626b5e9bb60dff4fb29544b3befe6a4895498d3c96fb75fb8002 SHA512 0d2dd718334f2607ac70bb0863cea312ba74ad910f5fe46ee95d8f1cd94e4dd79485289e84c65607f1880bcd5071904ba53144194f62eaf4850363e89616e93e
|
||||
DIST mayhem_v1.3.1_FIRMWARE.7z 3759146 BLAKE2B 60b88047fe01c22288f9f5891d36932726bb99925d11ec082a8cd0f2e32676fd014542afb7e24bd256307126113f67f4dd668d12dfd73e75d4a01013eb2a34c2 SHA512 9788294f5a87c315d342ae73c13769eb8396b9169c7f630dc4b5a5b5b0013efc95271f3f2ad3486590554acb1eddf2bf04d04440e4652b44cdba309d47c38e4b
|
||||
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
|
||||
|
|
|
|||
|
|
@ -1,79 +0,0 @@
|
|||
# Copyright 1999-2020 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Custom firmware for the HackRF SDR + PortaPack H1 addon"
|
||||
HOMEPAGE="https://github.com/eried/portapack-mayhem"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="sdcard-files"
|
||||
|
||||
if [ "${PV}" == "9999" ]; then
|
||||
inherit cmake git-r3
|
||||
EGIT_REPO_URI="https://github.com/eried/portapack-mayhem.git"
|
||||
EGIT_BRANCH="next"
|
||||
DEPEND="sys-devel/gcc-arm-none-eabi"
|
||||
else
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
SRC_URI="https://github.com/eried/portapack-mayhem/releases/download/v${PV}/mayhem_v${PV}_FIRMWARE.7z
|
||||
sdcard-files? ( https://github.com/eried/portapack-mayhem/releases/download/v${PV}/mayhem_v${PV}_COPY_TO_SDCARD.7z )"
|
||||
DEPEND="app-arch/p7zip"
|
||||
fi
|
||||
|
||||
PDEPEND=">=net-wireless/hackrf-tools-2015.07.2-r1
|
||||
>=app-mobilephone/dfu-util-0.7"
|
||||
|
||||
src_unpack() {
|
||||
if [ "${PV}" = 9999 ]; then
|
||||
git-r3_src_unpack
|
||||
else
|
||||
#upstream tarballs unpack into currect directory
|
||||
mkdir ${P}
|
||||
pushd ${P}
|
||||
unpack mayhem_v${PV}_FIRMWARE.7z
|
||||
if use sdcard-files; then
|
||||
mkdir sdcard
|
||||
pushd sdcard
|
||||
unpack mayhem_v${PV}_COPY_TO_SDCARD.7z
|
||||
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
|
||||
}
|
||||
Loading…
Reference in a new issue