2021-06-16 19:27:28 +08:00
# Maintainer: imp0 <jan <(@)> siteworld <(.)> be>
# Contributor: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
pkgname = helvum
2021-10-02 01:17:48 +08:00
pkgver = 0.3.1
2021-06-16 19:27:28 +08:00
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' )
2021-10-02 01:17:48 +08:00
makedepends = ( 'rust' 'clang' 'semver' 'meson' )
2021-06-16 19:27:28 +08:00
conflicts = ( 'helvum-git' )
2021-10-02 01:17:48 +08:00
source = ( " https://gitlab.freedesktop.org/ryuukyu/ ${ pkgname } /-/archive/ ${ pkgver } / ${ pkgname } - ${ pkgver } .tar.gz " )
sha512sums = ( '6a8bafb6302d2638e76d22f348bba1ca222857d5dde42f178853151bf50161574e1a534d7194decab4677651d152ac38dcefa3cfde28ea8630ca0360c3b88868' )
2021-06-16 19:27:28 +08:00
# 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 } )... "
2021-08-09 06:44:30 +08:00
rust_ver = $( rustc --version | awk '{print $2}' | sed 's/-nightly//' )
2021-06-16 19:27:28 +08:00
semver -r " >= ${ min_ver } " " ${ rust_ver } "
}
build( ) {
2021-10-02 01:17:48 +08:00
arch-meson " ${ pkgname } - ${ pkgver } " build
meson compile -C build
2021-06-16 19:27:28 +08:00
}
package( ) {
2021-10-02 01:17:48 +08:00
meson install -C build --destdir " ${ pkgdir } "
2021-06-16 19:27:28 +08:00
# Installs license
2021-10-02 01:17:48 +08:00
cd " ${ pkgname } - ${ pkgver } "
2021-06-16 19:27:28 +08:00
install -dm755 " ${ pkgdir } /usr/share/licenses/ ${ pkgname } "
install -m644 LICENSE " ${ pkgdir } /usr/share/licenses/ ${ pkgname } /LICENSE "
}
# vim:set ts=2 sw=2 et: