createaport: Strip leading `v` from package versions v1 APPLIED

Hugo Osvaldo Barrera: 1
 Strip leading `v` from package versions

 1 files changed, 4 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~martijnbraam/public-inbox/patches/39236/mbox | git am -3
Learn more about email & git

[PATCH createaport] Strip leading `v` from package versions Export this patch

Many projects add a leading `v` to tags for versions. However, the
contents of tarballs don't include this, so `$builddir` ends up being
`package-v1.0.0`, but the real path is actually `package-1.0.0`.

I haven't seem any scenarios where a leading `v` is present but this
doesn't uphold.

That aside, APKBUILD conventions seem to align with removing the leading
 createaport/forge.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/createaport/forge.py b/createaport/forge.py
index 4733ded..2d5bef2 100644
--- a/createaport/forge.py
+++ b/createaport/forge.py
@@ -27,6 +27,10 @@ def get_forge_info(aport):
            aport = get_forge_info_gitlab(aport)
        elif 'chromium/issues/detail?id=332189 -->' in raw:
            aport = get_forge_info_sourcehut(aport)

    if aport.pkgver.startswith("v"):
        aport.pkgver = aport.pkgver[1:]

    return aport

Thanks, applied :)