commit:     6592b47769be7a9e97da20bbb05008b4b60aed45
Author:     Tim Lapawa <gentoo <AT> lapawa <DOT> de>
AuthorDate: Tue Oct 14 17:47:13 2025 +0000
Commit:     Tim Lapawa <gentoo <AT> lapawa <DOT> de>
CommitDate: Tue Oct 14 17:47:13 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6592b477

Using ver_cut in SRC_URI

Signed-off-by: Tim Lapawa <gentoo <AT> lapawa.de>

 net-misc/brickd/brickd-2.4.8.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-misc/brickd/brickd-2.4.8.ebuild 
b/net-misc/brickd/brickd-2.4.8.ebuild
index feaa8c3578..f7f424c816 100644
--- a/net-misc/brickd/brickd-2.4.8.ebuild
+++ b/net-misc/brickd/brickd-2.4.8.ebuild
@@ -32,7 +32,7 @@ 
HOMEPAGE="https://www.tinkerforge.com/en/doc/Software/Brickd.html https://github
 #SRC_URI="ftp://foo.example.org/${P}.tar.gz";
 SRC_URI="
        https://github.com/Tinkerforge/brickd/archive/refs/tags/v${PV}.tar.gz 
-> ${P}.tar.gz
-       
https://github.com/Tinkerforge/daemonlib/archive/refs/tags/brickd-2.4.7.tar.gz 
-> daemonlib-2.4.7.tar.gz"
+       
https://github.com/Tinkerforge/daemonlib/archive/refs/tags/brickd-$(ver_cut 
1-2).7.tar.gz -> daemonlib-$(ver_cut 1-2).7.tar.gz"
 
 # https://github.com/Tinkerforge/brickd/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz
 # Source directory; the dir where the sources can be found (automatically
@@ -116,7 +116,7 @@ src_configure() {
 
        # source code of daemonlib package must be linked into brickd sources
        # reference: https://github.com/Tinkerforge/brickd
-       ln -s "${WORKDIR}/daemonlib-brickd-2.4.7" 
"${WORKDIR}/${P}/src/daemonlib" || die
+       ln -s "${WORKDIR}/daemonlib-brickd-$(ver_cut 1-2).7" 
"${WORKDIR}/${P}/src/daemonlib" || die
        # Most open-source packages use GNU autoconf for configuration.
        # The default, quickest (and preferred) way of running configure is:
        #econf

Reply via email to