diff options
| -rw-r--r-- | PKGBUILD | 13 | ||||
| -rw-r--r-- | mumctl/src/main.rs | 3 |
2 files changed, 2 insertions, 14 deletions
@@ -10,20 +10,12 @@ url="https://github.com/sornas/mum.git" license=('MIT') sha256sums=('SKIP') depends=('alsa-lib' 'opus' 'openssl') -optdepends=('bash: for tab-completions', - 'fish: for tab-completions', - 'zsh: for tab-completions') makedepends=('git' 'rust') source=("git+$url") build() { cd "${srcdir}/${pkgname%-git}" - cargo build --release --target-dir=target - - which bash &>/dev/null && ./target/release/mumctl completions --bash > mumctl.bash - which fish &>/dev/null && ./target/release/mumctl completions --fish > mumctl.fish - which zsh &>/dev/null && ./target/release/mumctl completions --zsh > mumctl.zsh } check() { @@ -33,11 +25,6 @@ check() { package() { cd "${srcdir}/${pkgname%-git}" - - which bash &>/dev/null && install -Dm 755 mumctl.bash "${pkgdir}/usr/share/bash-completion/completions/mumctl" - which fish &>/dev/null && install -Dm 755 mumctl.fish "${pkgdir}/usr/share/fish/completions/mumctl.fish" - which zsh &>/dev/null && install -Dm 755 mumctl.zsh "${pkgdir}/usr/share/zsh/site-functions/_mumctl" - install -Dm 755 target/release/mumctl -t "${pkgdir}/usr/bin" install -Dm 755 target/release/mumd -t "${pkgdir}/usr/bin" install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" diff --git a/mumctl/src/main.rs b/mumctl/src/main.rs index e0beb2f..5c07f7b 100644 --- a/mumctl/src/main.rs +++ b/mumctl/src/main.rs @@ -1,10 +1,11 @@ use clap::{App, AppSettings, Arg, Shell, SubCommand}; use colored::Colorize; -use ipc_channel::ipc::{self, IpcSender}; +use ipc_channel::ipc::{self, IpcReceiver, IpcSender}; use log::*; use mumlib::command::{Command, CommandResponse}; use mumlib::setup_logger; use std::{fs, io}; +use colored::Colorize; macro_rules! err_print { ($func:expr) => { |
