summaryrefslogtreecommitdiff
path: root/newapkbuild.in
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2019-10-27 20:32:46 +0100
committerJakub Jirutka <jakub@jirutka.cz>2019-10-27 20:35:10 +0100
commita8f564287e002c399ec57c1490fd80d83ff74d68 (patch)
tree6a6d430598148a682aca707fd5de507c44aa1927 /newapkbuild.in
parent6c3b2e6b5853dde74687016a25095e8a358c564e (diff)
downloadabuild-a8f564287e002c399ec57c1490fd80d83ff74d68.tar.gz
abuild-a8f564287e002c399ec57c1490fd80d83ff74d68.tar.bz2
abuild-a8f564287e002c399ec57c1490fd80d83ff74d68.tar.xz
abuild-a8f564287e002c399ec57c1490fd80d83ff74d68.zip
newapkbuild: simplify source URL derived from GitHub URL
GitHub allows to reference https://github.com/<user>/<proj>/archive/<ver>.tar.gz also as https://github.com/<user>/<proj>/archive/<ver>/<anything>.tar.gz.
Diffstat (limited to 'newapkbuild.in')
-rw-r--r--newapkbuild.in2
1 files changed, 1 insertions, 1 deletions
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