# concat-git - Concat (https://github.com/jub0t/Concat) built from the main # branch. Same build as concat, see that package for why the editor needs # cargo, cmake and clang. # # The differences: main dropped the FemtoVG-over-wgpu renderer after 0.2.4, # so this builds upstream's default, Skia. And concat pins the prebuilt # sherpa-onnx static-lib archive as a checksummed source, which it can # because the version comes from a tagged Cargo.lock. Here the versions move # with main, so the build scripts of sherpa-onnx-sys and skia-bindings # download their archives and build() needs the network. # # VCS packages are not version-tracked here on purpose. The AUR copy of a -git # PKGBUILD carries only a snapshot of pkgver; the real version comes from # pkgver() when the user builds it. Following main here would mean AUR pushes # that change nothing for anyone. latest_version() therefore reports the # pkgver that is already in the PKGBUILD, which makes the update run a no-op: # the package is rebuilt, re-checked and pushed only when the packaging # itself changes. # # When that happens, makepkg refreshes the pkgver snapshot in the PKGBUILD as # part of the test build, so the committed snapshot follows along by itself. # Installed in CI (pacman) before the makepkg test build. BUILD_DEPS=(rust cmake clang pkgconf git ffmpeg onnxruntime-cpu alsa-lib fontconfig freetype2) latest_version() { grep -Po '^pkgver=\K.*' "$(dirname "${BASH_SOURCE[0]}")/PKGBUILD" } # refresh_checksums # Unreachable: latest_version() never reports a version other than the current # one. The git source carries SKIP checksums, so there would be nothing to do. refresh_checksums() { : }