blob: 53c7ce0413fddbed93cb31bbf376db9c56fd1b07 (
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
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
COMMIT="ec0ef36b8b897ed1ae6bb0d0de13d5776f5d3659"
MY_PN="pine64-alsa-ucm"
DESCRIPTION="ALSA ucm configuration files for the PinePhone (Pro)"
HOMEPAGE="https://gitlab.com/pine64-org/pine64-alsa-ucm"
SRC_URI="https://gitlab.com/pine64-org/${MY_PN}/-/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_PN}-alsa-ucm-${COMMIT}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~arm64"
RDEPEND="
>=media-libs/alsa-topology-conf-1.2.5
>=media-libs/alsa-lib-1.2.6
>=media-plugins/alsa-plugins-1.2.6
>=media-libs/alsa-ucm-conf-1.2.6
>=media-video/pipewire-0.3.42
"
DEPEND="${RDEPEND}"
src_install() {
# PinePhone Configs
insinto /usr/share/alsa/ucm2/PinePhone/
insopts -m644
doins "${S}"/ucm2/PinePhone/HiFi.conf
doins "${S}"/ucm2/PinePhone/VoiceCall.conf
doins "${FILESDIR}"/PinePhone.conf
# PinePhone Pro Configs
insinto /usr/share/alsa/ucm2/PinePhonePro/
insopts -m644
doins "${S}"/ucm2/PinePhonePro/HiFi.conf
doins "${S}"/ucm2/PinePhonePro/VoiceCall.conf
doins "${FILESDIR}"/PinePhonePro.conf
# Create Symlinks
dosym ../../../PinePhone/PinePhone.conf /usr/share/alsa/ucm2/conf.d/simple-card/PinePhone.conf
dosym ../../../PinePhonePro/PinePhonePro.conf /usr/share/alsa/ucm2/conf.d/simple-card/PinePhonePro.conf
}
|