From 31b39e6a66a20e6b984524f3f63117ac77f2bf18 Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Sun, 12 Nov 2023 11:28:15 +0100 Subject: [PATCH] add build script for speakersafeteyd --- meta.sh | 4 ++-- prepare_rust.sh | 1 + speakersafetyd.sh | 43 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 speakersafetyd.sh diff --git a/meta.sh b/meta.sh index 376d4e5..999f97b 100644 --- a/meta.sh +++ b/meta.sh @@ -12,14 +12,14 @@ unset LANG mkdir -p build cd build -export META_VERSION=6.5.0-1 +export META_VERSION=6.5.0-2 rm -rf linux-image-asahi_${META_VERSION}_arm64 mkdir -p linux-image-asahi_${META_VERSION}_arm64/DEBIAN cat > linux-image-asahi_${META_VERSION}_arm64/DEBIAN/control <> Cargo.toml +[package.metadata.deb] +maintainer = "Thomas Glanzmann " +copyright = "The Asahi Linux Contributors" +license-file = ["LICENSE", "0"] +depends = "$auto" +assets = [ + ["LICENSE", "/var/lib/speakersafetyd/blackbox/", "644"], + ["target/release/speakersafetyd", "/usr/bin/speakersafetyd", "755"], + ["95-speakersafetyd.rules", "/usr/lib/udev/rules.d/95-speakersafetyd.rules", "644"], + ["speakersafetyd.service", "/usr/lib/systemd/system/speakersafetyd.service", "644"], + ["conf/apple/*", "/usr/share/speakersafetyd/apple/", "644"], +] +EOF + +make +cargo install cargo-deb +cargo deb -- 2.39.5