aboutsummaryrefslogtreecommitdiffstats
path: root/testing/alsa-tools/APKBUILD
blob: 5be37c350dc9722eed02d313ebe32d6f0bc73b2d (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
37
38
39
40
41
42
43
44
45
46
47
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=alsa-tools
pkgver=1.1.7
pkgrel=0
pkgdesc="Advanced tools for certain sound cards"
url="https://www.alsa-project.org"
arch="all"
license="GPL-2.0-or-later"
makedepends="fltk-dev gtk+2.0-dev gtk+3.0-dev alsa-lib-dev bash autoconf automake
	libtool"
options="!check" # No tests
subpackages="$pkgname-dev $pkgname-doc $pkgname-gui:_gui"
source="ftp://ftp.alsa-project.org/pub/tools/alsa-tools-$pkgver.tar.bz2"

prepare() {
	default_prepare
	update_config_guess

	# Remove qlo10k1 package, only works with Qt2/Qt3
	sed 's/qlo10k1//' -i Makefile
}

build() {
	make configure CONFIGURE_ARGS="--prefix=/usr"
}

package() {
	make DESTDIR="$pkgdir" install

	cp -r "$pkgdir"/usr/local/* "$pkgdir"/usr/
	rm -r "$pkgdir"/usr/local
}

_gui() {
	pkgdesc="$pkgdesc (GUI tools)"

	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/echomixer "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/envy24control "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/hdajackretask "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/hdspconf "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/hdspmixer "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/rmedigicontrol "$subpkgdir"/usr/bin
}

sha512sums="d715fa5b909fb33ffce252b4ae9f027dc7c1a509253d52bda6ecbc5e0a38e7d30ab8486b14114b226424217812a0edf66e7ec11f7674e44c77a14e4dfb16889c  alsa-tools-1.1.7.tar.bz2"