mirror of
https://github.com/outbackdingo/ports.git
synced 2026-02-06 17:30:31 +00:00
10 lines
206 B
Plaintext
10 lines
206 B
Plaintext
filename=fakeroot
|
|
|
|
port_getver() {
|
|
fetch \
|
|
| grep -Eo $filename[_-][0-9a-z.]+.tar.[bgx]z2? \
|
|
| sed "s/$filename[-_]//;s/\.tar.*//;s/\.orig//" \
|
|
| grep -Evi '(alpha|beta|rc|pre)' \
|
|
| grep [[:digit:]]
|
|
}
|