mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-04-01 22:48:56 +00:00
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:
parent
6c3b2e6b58
commit
a8f564287e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user