aboutsummaryrefslogtreecommitdiffstats
path: root/community/pulseaudio-ctl/APKBUILD
blob: 07c72f5ed255fcb4bdd84826c056fcb2c74d5e05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=pulseaudio-ctl
pkgver=1.67
pkgrel=0
pkgdesc="Control pulseaudio volume from the shell or mapped to keyboard shortcuts"
options="!check" # No testsuite
url="https://github.com/graysky2/pulseaudio-ctl"
arch="noarch"
license="MIT"
depends="bash pulseaudio-utils"
subpackages="
	$pkgname-doc
	$pkgname-zsh-completion:zshcomp:noarch
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/graysky2/pulseaudio-ctl/archive/v$pkgver.tar.gz"

build() {
	make
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

zshcomp() {
	depends=""
	pkgdesc="Zsh compltions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel zsh"

	mkdir -p "$subpkgdir"/usr/share/zsh
	mv "$pkgdir"/usr/share/zsh/site-functions "$subpkgdir"/usr/share/zsh
	rmdir -p "$pkgdir"/usr/share/zsh 2>/dev/null || :
}

sha512sums="5ea1cbfd87cf073de46b6fd9953a3c7b9c6969da46103dd5dfc56aa3f179b2ba36ade5db7ca47d204f0f60ac02020f1a4f2dd58bbaf010f9a99780702295418c  pulseaudio-ctl-1.67.tar.gz"