2022-01-02 15:40:22 +01:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2021-12-15 10:51:17 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2022-02-14 13:10:45 +01:00
|
|
|
EAPI=8
|
2021-12-15 10:51:17 +01:00
|
|
|
|
2022-07-11 13:31:15 +02:00
|
|
|
COMMIT="355d788a6b53bb6b723779c5f791b735f589479d"
|
2021-12-15 10:51:17 +01:00
|
|
|
|
2022-01-11 10:06:42 +01:00
|
|
|
DESCRIPTION="ALSA ucm configuration files for the PinePhone (Pro)"
|
2022-07-11 13:39:31 +02:00
|
|
|
HOMEPAGE="https://gitlab.manjaro.org/manjaro-arm/packages/community/pinephone/alsa-ucm-pinephone"
|
|
|
|
SRC_URI="https://gitlab.manjaro.org/manjaro-arm/packages/community/pinephone/alsa-ucm-pinephone/-/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
S="${WORKDIR}/alsa-ucm-pinephone-${COMMIT}"
|
2021-12-15 10:51:17 +01:00
|
|
|
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~arm64"
|
|
|
|
|
2021-12-15 11:30:44 +01:00
|
|
|
RDEPEND="
|
2022-01-11 10:06:42 +01:00
|
|
|
>=media-libs/alsa-topology-conf-1.2.5
|
2022-01-10 17:40:13 +01:00
|
|
|
>=media-libs/alsa-lib-1.2.6
|
2022-01-17 00:14:03 +01:00
|
|
|
>=media-plugins/alsa-plugins-1.2.6
|
2021-12-15 11:30:44 +01:00
|
|
|
>=media-libs/alsa-ucm-conf-1.2.6
|
2022-02-14 13:10:45 +01:00
|
|
|
>=media-video/pipewire-0.3.42
|
|
|
|
"
|
2021-12-15 11:30:44 +01:00
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
|
2021-12-15 10:51:17 +01:00
|
|
|
src_install() {
|
2022-02-14 13:10:45 +01:00
|
|
|
# PinePhone Configs
|
2022-01-20 23:34:41 +01:00
|
|
|
insinto /usr/share/alsa/ucm2/PinePhone/
|
|
|
|
insopts -m644
|
2022-07-11 13:51:17 +02:00
|
|
|
newins "${S}"/PinePhone-HiFi.conf HiFi.conf
|
2022-07-11 13:47:19 +02:00
|
|
|
newins "${S}"/PinePhone-VoiceCall.conf VoiceCall.conf
|
2022-07-11 13:31:15 +02:00
|
|
|
doins "${S}"/PinePhone.conf
|
2022-01-21 00:35:31 +01:00
|
|
|
|
2022-02-14 13:10:45 +01:00
|
|
|
# PinePhone Pro Configs
|
2022-01-20 23:34:41 +01:00
|
|
|
insinto /usr/share/alsa/ucm2/PinePhonePro/
|
|
|
|
insopts -m644
|
2022-07-11 13:47:19 +02:00
|
|
|
newins "${S}"/PinePhonePro-HiFi.conf HiFi.conf
|
|
|
|
newins "${S}"/PinePhonePro-VoiceCall.conf VoiceCall.conf
|
2022-07-11 13:31:15 +02:00
|
|
|
doins "${S}"/PinePhonePro.conf
|
2022-01-21 00:35:31 +01:00
|
|
|
|
2022-02-14 13:10:45 +01:00
|
|
|
# Create Symlinks
|
2022-07-11 13:54:08 +02:00
|
|
|
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
|
2021-12-15 10:51:17 +01:00
|
|
|
}
|