This commit is contained in:
Anton Bolshakov 2022-01-08 11:02:16 +08:00
parent 81894be9b6
commit 6d04a50d84
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
3 changed files with 69 additions and 3 deletions

View file

@ -1 +1,2 @@
DIST editcp-1.0.25.tar.xz 29129232 BLAKE2B dd220e39f1708f500e317a67ff0c8fd8d3a8e8ba0e815e93830c40fc3440975b05ebc2e54babe94df25c3358a4634a205139891ec7cfac836e47aacdf5113924 SHA512 8a218cf5e1354ead98c37e7c9d693edd9b7717592edf0b9222086cf28531dfbb7f50adff9469aef34416ad71165c7566e9918e6a0f8accc981cc2eb440f5fd3a
DIST editcp-1.0.27.tar.xz 29137648 BLAKE2B 98a8b3e589ba87d8703445329c490750c1573e0434b709f54b760c80a73ef30b1a3b5d7a1200484ca4097a9e7e1ca74d2bed59faf4ee15071e4a0dab350b1ba6 SHA512 2d5500465a6b7e9cbc58d7c1d0835ebbc2fdf2fff140e697e80d8655f34123deaf7becb06afad51c4c4ba40033ed6cf6861c2758e7267690985c2b0d054b7221
DIST editcp-1.0.28.tar.xz 29151248 BLAKE2B aa267e22e452ee92742ebc8d09e4c28c3788252172f55d7c992cdfc740a674e56bc41f43517ebd3d7d6ebbd500952ff6741952d855a9f6427ed7fbd17dcc4318 SHA512 0f6469f3bf6cac051302f1342217e80559d711aca5439559d7853b4ca13b4511a3abe4f60a113d4f32b0a93a88964d6751df3ad5953e0362238e69fc845dfd9e

View file

@ -1,4 +1,4 @@
# Copyright 2020 Gentoo Authors
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@ -9,7 +9,8 @@ MY_PN="${PN%-bin}"
DESCRIPTION="Codeplug editor for the MD-380/MD-390/MD40/MD-UV380/MD-UV390 DMR radios"
HOMEPAGE="https://www.farnsworth.org/dale/codeplug/editcp"
SRC_URI="https://www.farnsworth.org/dale/codeplug/editcp/downloads/linux/editcp-${PV}.tar.xz"
SRC_URI="https://www.farnsworth.org/dale/codeplug/editcp/downloads/linux/editcp-${PV}.tar.xz
https://www.farnsworth.org/dale/codeplug/editcp/downloads/linux/previous/editcp-${PV}.tar.xz"
KEYWORDS="~amd64"
LICENSE="GPL-3"

View file

@ -0,0 +1,64 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop udev xdg
MY_PN="${PN%-bin}"
DESCRIPTION="Codeplug editor for the MD-380/MD-390/MD40/MD-UV380/MD-UV390 DMR radios"
HOMEPAGE="https://www.farnsworth.org/dale/codeplug/editcp"
SRC_URI="https://www.farnsworth.org/dale/codeplug/editcp/downloads/linux/editcp-${PV}.tar.xz
https://www.farnsworth.org/dale/codeplug/editcp/downloads/linux/previous/editcp-${PV}.tar.xz"
KEYWORDS="~amd64"
LICENSE="GPL-3"
SLOT="0"
RESTRICT="strip"
RDEPEND="
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtserialport:5
dev-libs/libpcre:=
!net-wireless/editcp
virtual/libusb:1"
QA_DT_NEEDED="opt/${MY_PN}/(lib|plugins/.*)/lib.*[.]so[.][0-9]\+"
S="${WORKDIR}/${MY_PN}-${PV}"
src_prepare() {
default
sed -i \
-e "s|^dirname=\(.*\)|dirname=/opt/${MY_PN}|" \
-e "s|\(\"\$dirname/\$appname\" \"\$@\"\)|exec \1|" ${MY_PN}.sh || die
rm install
}
src_install() {
insinto "/opt/${MY_PN}"
insopts -m0755
doins -r lib/ plugins/
doins *.sh editcp
dosym "../${MY_PN}/${MY_PN}.sh" "/opt/bin/${MY_PN}"
udev_dorules 99-md380.rules
make_desktop_entry $MY_PN "Editcp (bin)" $MY_PN "Utility"
}
pkg_postinst() {
xdg_desktop_database_update
udev_reload
}
pkg_postrm() {
xdg_desktop_database_update
udev_reload
}