apkbuild-pypi.in: suppress some warnings
According to the coding style of aports, $()
is preferred over backticks, so fixed it.
Perl's smartmatch is deprecated in 5.37.10 and will be removed in 5.42.0, so replaced it with if/elif. It will be a little bit uglier than before, but I think it is the only way to be backwards compatible.