autoupdate: helvum to 0.3.1-2 from aur

This commit is contained in:
Archlinux-Jerry Build Bot 2021-10-04 18:49:08 +08:00
parent ce7319c845
commit d351e55921
1 changed files with 2 additions and 12 deletions

View File

@ -3,27 +3,17 @@
pkgname=helvum
pkgver=0.3.1
pkgrel=1
pkgrel=2
pkgdesc='GTK-based patchbay for pipewire, inspired by the JACK tool catia'
arch=('x86_64')
url='https://gitlab.freedesktop.org/ryuukyu/helvum'
license=('GPL3')
depends=('gtk4' 'pipewire')
makedepends=('rust' 'clang' 'semver' 'meson')
makedepends=('rust' 'clang' 'meson')
conflicts=('helvum-git')
source=("https://gitlab.freedesktop.org/ryuukyu/${pkgname}/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha512sums=('6a8bafb6302d2638e76d22f348bba1ca222857d5dde42f178853151bf50161574e1a534d7194decab4677651d152ac38dcefa3cfde28ea8630ca0360c3b88868')
# This package needs at least rust 1.51 to build correctly: https://gitlab.freedesktop.org/ryuukyu/helvum/-/issues/4
# No proper solution to handle this was implemented in rust so far: https://rust-lang.github.io/rfcs/2495-min-rust-version.html
# This check will fail when the installed rust version doesn't meet the minimum requirement, although it shouldn't occur when an up-to-date build environment is used.
prepare() {
min_ver='1.51'
echo "Checking for minimal required rust version (${min_ver})..."
rust_ver=$(rustc --version | awk '{print $2}' | sed 's/-nightly//')
semver -r ">=${min_ver}" "${rust_ver}"
}
build() {
arch-meson "${pkgname}-${pkgver}" build
meson compile -C build