diff --git a/srcpkgs/speakersafetyd/files/speakersafetyd/run b/srcpkgs/speakersafetyd/files/speakersafetyd/run new file mode 100755 index 00000000000000..eacab8036a83a3 --- /dev/null +++ b/srcpkgs/speakersafetyd/files/speakersafetyd/run @@ -0,0 +1,3 @@ +#!/bin/sh +exec 2>&1 +exec /usr/bin/speakersafetyd -c /usr/share/speakersafetyd/ -b /var/lib/speakersafetyd/blackbox -m 7 diff --git a/srcpkgs/speakersafetyd/template b/srcpkgs/speakersafetyd/template new file mode 100644 index 00000000000000..c862821bd96538 --- /dev/null +++ b/srcpkgs/speakersafetyd/template @@ -0,0 +1,21 @@ +# Template file for 'speakersafetyd' +pkgname=speakersafetyd +version=1.0.2 +revision=1 +build_style=cargo +hostmakedepends="alsa-lib pkg-config" +makedepends="alsa-lib-devel" +short_desc="Software Smart Amp implementation" +maintainer="dkwo " +license="MIT" +homepage="https://github.com/AsahiLinux/speakersafetyd" +distfiles="https://github.com/AsahiLinux/speakersafetyd/archive/refs/tags/${version}.tar.gz" +checksum=844ae3719c029e826f58c3799b6e358d189b0c42ade7a91f6c35b960cae35919 +make_dirs="/var/lib/speakersafetyd/blackbox 0755 root root" + +post_install() { + DESTDIR="${DESTDIR}" make install-data + mv ${DESTDIR}/lib/* ${DESTDIR}/usr/lib + vlicense LICENSE + vsv speakersafetyd +}