diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2019-10-27 20:32:46 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2019-10-27 20:35:10 +0100 |
commit | a8f564287e002c399ec57c1490fd80d83ff74d68 (patch) | |
tree | 6a6d430598148a682aca707fd5de507c44aa1927 | |
parent | 6c3b2e6b5853dde74687016a25095e8a358c564e (diff) | |
download | abuild-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.
-rw-r--r-- | newapkbuild.in | 2 |
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 |