From a8f564287e002c399ec57c1490fd80d83ff74d68 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sun, 27 Oct 2019 20:32:46 +0100 Subject: [PATCH] newapkbuild: simplify source URL derived from GitHub URL GitHub allows to reference https://github.com///archive/.tar.gz also as https://github.com///archive//.tar.gz. --- newapkbuild.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newapkbuild.in b/newapkbuild.in index 24350d0..6130a4c 100644 --- a/newapkbuild.in +++ b/newapkbuild.in @@ -208,7 +208,7 @@ newaport() { fi pv=${newname%.t*} #strip .tar.gz .tgz .tar.bz2 etc pv=${pv#*[a-z]} - source="$pkgname-$pv.tar.gz::$source" + source="${source%.t*}/$pkgname-$pv.tar.gz" elif [ "$pn" != "$newname" ]; then pv=${newname#$pn-} pv=${pv%.t*} #strip .tar.gz .tgz .tar.bz2 etc