<div dir="ltr"><div dir="ltr">On Fri, Apr 10, 2020 at 9:14 PM Simon Gardling <<a href="mailto:titaniumtown@gmail.com">titaniumtown@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">but it needs sed and jq (sed is already a depend)<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 10, 2020 at 3:13 PM Simon Gardling <<a href="mailto:titaniumtown@gmail.com" target="_blank">titaniumtown@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I have an improvement to the PKGBUILD, how do I submit it?</div><div>It's to replace the _pkgver and _build with:</div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-weight:normal;font-size:14px;line-height:19px;white-space:pre-wrap"><div><span style="color:rgb(212,212,212)">_pkgver=</span><span style="color:rgb(206,145,120)">$(curl -L <a href="https://papermc.io/api/v1/paper/" target="_blank">https://papermc.io/api/v1/paper/</a> </span><span style="color:rgb(212,212,212)">|</span><span style="color:rgb(206,145,120)"> jq .versions[0] </span><span style="color:rgb(212,212,212)">|</span><span style="color:rgb(206,145,120)"> sed -e 's|["'</span><span style="color:rgb(215,186,125)">\'</span><span style="color:rgb(206,145,120)">']||g')</span></div><div><span style="color:rgb(212,212,212)">_build=</span><span style="color:rgb(206,145,120)">$(curl -L <a href="https://papermc.io/api/v1/paper/" target="_blank">https://papermc.io/api/v1/paper/</a></span><span style="color:rgb(156,220,254)">${_pkgver}</span><span style="color:rgb(206,145,120)">/ </span><span style="color:rgb(212,212,212)">|</span><span style="color:rgb(206,145,120)"> jq </span><span style="color:rgb(212,212,212)">|</span><span style="color:rgb(206,145,120)"> grep "latest" </span><span style="color:rgb(212,212,212)">|</span><span style="color:rgb(206,145,120)"> sed 's/[^[:digit:]]\+//g')</span></div></div></div></div></blockquote></div></blockquote><div><br></div><div>This is not an improvement! No fair reading of my messages should have enabled you to come to the conclusion that I think fetching the most recent version is a valid option here!</div><div><br></div><div>Btw. this is also not how this is supposed to be solved in a VCS package! There is a `pkgver` function for a reason... see [1].</div><div><br></div><div> [1] <a href="https://wiki.archlinux.org/index.php/VCS_package_guidelines" target="_blank">https://wiki.archlinux.org/index.php/VCS_package_guidelines</a></div></div></div>