|
- Upstream revision ac9374c [1] has changed the location of the
base version number. Fix base version calculation in this PKGBUILD
in order to accommodate that upstream change.
- Fix namcap warning `W: ELF file (…) lacks FULL RELRO, check LDFLAGS.`
Re-use the LDFLAGS trick that the original PKGBUILD author has used
to work around a pecularity in the upstream Makefile: the Makefile
defines its own CFLAGS and LDFLAGS from scratch, not leaving room for
us to override a few crucial pieces that makepkg is providing.
To work around that limitation, the original PKGBUILD author injects
makepkg’s CFLAGS into the CC variable (at least for the `utils` part).
To fix the namcap warnings, add LDFLAGS to this workaround.
Also use the same trick for the main executable, which fixes a
similar namcap warning there.
- Use the same CFLAGS trick to fix yet another issue in this PKGBUILD,
which the upstream commit [1] has uncovered, where the main executable
wouldn’t compile due to the Makefile-provided VERSION_STR missing.
Applying the CFLAGS trick from `utils` to the main executable solves
that issue, too.
- Upstream has cut a tagged release for the first time [2]. Therefore,
preemptively add `conflicts` and `provides` directives to this
PKGBUILD. That accommodates the upcoming (non-VCS) `vspcplay`
AUR package.
[1]: https://github.com/raphnet/vspcplay/commit/ac9374c3589104570987b9302b57b89bb8386fd6
[2]: https://github.com/raphnet/vspcplay/releases/tag/v1.4
|