mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 12:30:44 +02:00
portapack-mayhem
This commit is contained in:
parent
1945ba38cd
commit
d3f1471301
3 changed files with 56 additions and 0 deletions
1
net-wireless/portapack-mayhem/Manifest
Normal file
1
net-wireless/portapack-mayhem/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST portapack-mayhem-1.2.tar.gz 99117711 BLAKE2B c270f0fd21a4c3973a5fa16c6fb8e5488fe81ac11e223bc0c91c0b768abd1edbfc11db1579b1052c9d8338588056922a02ce2b77eb40ac79e9a40a5eb842ceec SHA512 c9bea6a33a997faccee0e3fa4bf136977e8ed36f4779f8766c0c9aabafe20b44fbdf2bf64c384bbd83def4f5ac8ee41671a25f787ad9df5737ad862436397a20
|
||||
11
net-wireless/portapack-mayhem/metadata.xml
Normal file
11
net-wireless/portapack-mayhem/metadata.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>zerochaos@gentoo.org</email>
|
||||
<name>Rick Farina</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">eried/portapack-mayhem</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
44
net-wireless/portapack-mayhem/portapack-mayhem-9999.ebuild
Normal file
44
net-wireless/portapack-mayhem/portapack-mayhem-9999.ebuild
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
# Copyright 1999-2020 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Custom firmware for the HackRF SDR + PortaPack H1 addon"
|
||||
HOMEPAGE="https://github.com/eried/portapack-mayhem"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
if [ "${PV}" == "9999" ]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/eried/portapack-mayhem.git"
|
||||
EGIT_BRANCH="gcc9.3-assert-redefinition"
|
||||
else
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
SRC_URI="https://github.com/eried/portapack-mayhem/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
|
||||
DEPEND="sys-devel/gcc-arm-none-eabi"
|
||||
PDEPEND=">=net-wireless/hackrf-tools-2015.07.2-r1
|
||||
>=app-mobilephone/dfu-util-0.7"
|
||||
|
||||
src_configure() {
|
||||
strip-flags
|
||||
filter-flags "-march=*" "-mtune=*"
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
V=1 cmake_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/${PN}
|
||||
doins -r "${S}"/sdcard
|
||||
newins ${BUILD_DIR}/firmware/portapack-h1_h2-mayhem.bin portapack-h1_h2-mayhem-${PV}.bin
|
||||
dodir /usr/share/hackrf
|
||||
ln -s ../${PN}/portapack-h1_h2-mayhem-${PV}.bin "${ED}/usr/share/hackrf/portapack-h1_h2-mayhem.bin" || die
|
||||
}
|
||||
Loading…
Reference in a new issue