pentoo-overlay/net-wireless/sdrtrunk-bin/sdrtrunk-bin-0.6.1.ebuild
Rick Farina (Zero_Chaos) 21ac1cfa9e
sdrtrunk-bin: prototype out 9999
I can't add 9999 as the nightly gets rebuilt all the time so the
checksums will already be wrong.  But this way I can symlink 9999 to the
release, make the manifest, and install.
2025-06-24 17:09:25 -04:00

57 lines
1.4 KiB
Bash

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Decode, monitor, record and stream trunked mobile and related radio protocols"
HOMEPAGE="https://github.com/DSheirer/sdrtrunk"
if [ "${PV}" = "9999" ]; then
MY_PV="nightly"
SRC_URI="https://github.com/DSheirer/sdrtrunk/releases/download/${MY_PV}/sdr-trunk-linux-x86_64-v${MY_PV}.zip"
else
BPV="${PV/_/-}"
MY_PV="${BPV/beta/beta-}"
SRC_URI="https://github.com/DSheirer/sdrtrunk/releases/download/v${MY_PV}/sdr-trunk-linux-x86_64-v${MY_PV}.zip"
fi
KEYWORDS="amd64 x86"
LICENSE="GPL-3"
SLOT="0"
RDEPEND="virtual/jre:*
media-libs/alsa-lib
app-accessibility/at-spi2-core:2
dev-libs/glib:2
media-libs/fontconfig
media-libs/freetype
media-libs/libglvnd
media-video/ffmpeg
sys-libs/zlib
x11-libs/cairo
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:2
x11-libs/gtk+:3
x11-libs/libX11
x11-libs/libXext
x11-libs/libXi
x11-libs/libXrender
x11-libs/libXtst
x11-libs/libXxf86vm
x11-libs/pango
!net-wireless/sdrtrunk
"
DEPEND="${RDEPEND}"
BDEPEND="app-arch/unzip"
S="${WORKDIR}/sdr-trunk-linux-x86_64-v${MY_PV}"
QA_PREBUILT="opt/sdrtrunk/bin/* opt/sdrtrunk/lib/*/* opt/sdrtrunk/lib/*"
QA_PRESTRIPPED="opt/sdrtrunk/lib/minimal/libjvm.so"
src_install() {
dodir /opt/sdrtrunk/
cp -R * "${ED}"/opt/sdrtrunk/
dosym "../../${EPREFIX}"/opt/sdrtrunk/bin/sdr-trunk /usr/bin/sdr-trunk
}