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.
This commit is contained in:
Jakub Jirutka 2019-10-27 20:32:46 +01:00
parent 6c3b2e6b58
commit a8f564287e
1 changed files with 1 additions and 1 deletions

View File

@ -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