void-packages/srcpkgs/helvum/template

30 lines
1.3 KiB
Bash

# Template file for 'helvum'
pkgname=helvum
version=0.4.0
revision=1
build_style=cargo
hostmakedepends="pkg-config clang libclang"
makedepends="gtk4-devel pipewire-devel glib-devel"
depends="pipewire"
short_desc="GTK patchbay for pipewire"
maintainer="0x5c <dev@0x5c.io>"
license="GPL-3.0-only"
homepage="https://gitlab.freedesktop.org/pipewire/helvum"
distfiles="https://gitlab.freedesktop.org/pipewire/helvum/-/archive/${version}/helvum-${version}.tar.gz"
checksum=e93afa788d3e50bae489db888ecf0d79e5735b8f4f8b29fe4174540b0872b622
post_install() {
# Normally, meson would do this, but it's simpler to use the cargo build style and do this manually
# This also avoids the need for makedeps/build steps that are made unnecessary by xbps' hooks
# On update, all meson.build files should be checked for changes
_app_id='org.pipewire.Helvum'
vinstall data/icons/$_app_id.svg 644 usr/share/icons/hicolor/scalable/apps/
vinstall data/icons/$_app_id-symbolic.svg 644 usr/share/icons/hicolor/symbolic/apps/
vsed -i data/$_app_id.desktop.in -e "s/@icon@/$_app_id/"
vinstall data/$_app_id.desktop.in 644 usr/share/applications/ $_app_id.desktop
vsed -i data/$_app_id.metainfo.xml.in -e "s/@app-id@/$_app_id/"
vinstall data/$_app_id.metainfo.xml.in 644 usr/share/metainfo/ $_app_id.metainfo.xml
}