pkgbuilds/helvum/PKGBUILD
2021-10-02 01:17:48 +08:00

41 lines
1.6 KiB
Bash

# Maintainer: imp0 <jan <(@)> siteworld <(.)> be>
# Contributor: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
pkgname=helvum
pkgver=0.3.1
pkgrel=1
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')
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
}
package() {
meson install -C build --destdir "${pkgdir}"
# Installs license
cd "${pkgname}-${pkgver}"
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et: