add libpulse as depends and pulseaudio as optional

This commit is contained in:
Josip Ponjavic 2018-10-03 13:58:31 +02:00
parent 48c661d9f4
commit 892686f93b
2 changed files with 15 additions and 13 deletions

View file

@ -1,6 +1,6 @@
pkgbase = i3status-rust-git pkgbase = i3status-rust-git
pkgdesc = Very resourcefriendly and feature-rich replacement for i3status to use with bar programs (like i3bar and swaybar), written in pure Rust pkgdesc = Very resourcefriendly and feature-rich replacement for i3status to use with bar programs (like i3bar and swaybar), written in pure Rust
pkgver = 0.9.0.r553.g4d2e595 pkgver = 0.9.0.r557.g07e5ffe
pkgrel = 1 pkgrel = 1
url = https://github.com/greshake/i3status-rust url = https://github.com/greshake/i3status-rust
install = i3status-rust.install install = i3status-rust.install
@ -8,18 +8,19 @@ pkgbase = i3status-rust-git
license = GPL3 license = GPL3
makedepends = git makedepends = git
makedepends = rust makedepends = rust
depends = dbus depends = libpulse
optdepends = alsa-utils: For volume block optdepends = alsa-utils: For the volume block
optdepends = curl: For the weather block optdepends = curl: For the weather block
optdepends = lm_sensors: For temperature block optdepends = lm_sensors: For the temperature block
optdepends = networkmanager: For networkmanager block optdepends = networkmanager: For the networkmanager block
optdepends = powerline-fonts: For all themes using the powerline arrow char optdepends = powerline-fonts: For all themes using the powerline arrow char
optdepends = pulseaudio: For the volume block
optdepends = speedtest-cli: For the speedtest block optdepends = speedtest-cli: For the speedtest block
optdepends = ttf-font-awesome-4: For the awesome icons optdepends = ttf-font-awesome-4: For the awesome icons
optdepends = upower: For the battery block optdepends = upower: For the battery block
provides = i3status-rust provides = i3status-rust
conflicts = i3status-rust conflicts = i3status-rust
source = git+https://github.com/greshake/i3status-rust source = i3status-rust::git+https://github.com/greshake/i3status-rust
sha1sums = SKIP sha1sums = SKIP
pkgname = i3status-rust-git pkgname = i3status-rust-git

View file

@ -1,26 +1,27 @@
# Maintainer: Josip Ponjavic <josipponjavic at gmail dot com> # Maintainer: Josip Ponjavic <josipponjavic at gmail dot com>
pkgname=i3status-rust-git pkgname=i3status-rust-git
pkgver=0.9.0.r553.g4d2e595 pkgver=0.9.0.r557.g07e5ffe
pkgrel=1 pkgrel=1
pkgdesc='Very resourcefriendly and feature-rich replacement for i3status to use with bar programs (like i3bar and swaybar), written in pure Rust' pkgdesc='Very resourcefriendly and feature-rich replacement for i3status to use with bar programs (like i3bar and swaybar), written in pure Rust'
arch=('x86_64') arch=('x86_64')
url='https://github.com/greshake/i3status-rust' url='https://github.com/greshake/i3status-rust'
license=('GPL3') license=('GPL3')
depends=('dbus') depends=('libpulse')
makedepends=('git' 'rust') makedepends=('git' 'rust')
optdepends=('alsa-utils: For volume block' optdepends=('alsa-utils: For the volume block'
'curl: For the weather block' 'curl: For the weather block'
'lm_sensors: For temperature block' 'lm_sensors: For the temperature block'
'networkmanager: For networkmanager block' 'networkmanager: For the networkmanager block'
'powerline-fonts: For all themes using the powerline arrow char' 'powerline-fonts: For all themes using the powerline arrow char'
'pulseaudio: For the volume block'
'speedtest-cli: For the speedtest block' 'speedtest-cli: For the speedtest block'
'ttf-font-awesome-4: For the awesome icons' 'ttf-font-awesome-4: For the awesome icons'
'upower: For the battery block') 'upower: For the battery block')
provides=("${pkgname%-*}") provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}") conflicts=("${pkgname%-*}")
install="${pkgname%-*}.install" install="${pkgname%-*}.install"
source=("git+$url") source=("${pkgname%-*}::git+$url")
sha1sums=('SKIP') sha1sums=('SKIP')
pkgver() { pkgver() {
@ -30,7 +31,7 @@ pkgver() {
build() { build() {
cd "${pkgname%-*}" cd "${pkgname%-*}"
cargo build --release cargo build --release --features "pulseaudio"
} }
package() { package() {