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
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2022-01-10 14:00:24 +01:00
|
|
|
COMMIT="ec0ef36b8b897ed1ae6bb0d0de13d5776f5d3659"
|
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-01-10 14:00:24 +01:00
|
|
|
HOMEPAGE="https://gitlab.com/pine64-org/pine64-alsa-ucm"
|
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-01-17 00:14:03 +01:00
|
|
|
>=media-video/pipewire-0.3.42
|
2021-12-15 11:30:44 +01:00
|
|
|
"
|
|
|
|
|
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
|
|
|
|
BDEPEND="${RDEPEND}"
|
2021-12-15 10:51:17 +01:00
|
|
|
|
2022-01-20 17:50:24 +01:00
|
|
|
S="${WORKDIR}"
|
|
|
|
|
2021-12-15 10:51:17 +01:00
|
|
|
src_install() {
|
2022-01-20 23:12:52 +01:00
|
|
|
#PinePhone Configs
|
2022-01-20 17:42:58 +01:00
|
|
|
insinto /usr/share/alsa/ucm2/PinePhone/HiFi.conf
|
2022-01-20 23:09:42 +01:00
|
|
|
insopts -m644
|
|
|
|
fperms 644
|
2022-01-20 23:12:52 +01:00
|
|
|
doins "${FILESDIR}"/PinePhone-HiFi.conf
|
2022-01-10 14:00:24 +01:00
|
|
|
|
2022-01-20 17:42:58 +01:00
|
|
|
insinto /usr/share/alsa/ucm2/PinePhone/VoiceCall.conf
|
2022-01-20 23:09:42 +01:00
|
|
|
insopts -m644
|
|
|
|
fperms 644
|
2022-01-20 23:12:52 +01:00
|
|
|
doins -"${FILESDIR}"/PinePhone-VoiceCall.conf
|
2022-01-20 17:42:58 +01:00
|
|
|
|
|
|
|
insinto /usr/share/alsa/ucm2/PinePhone/PinePhone.conf
|
2022-01-20 23:09:42 +01:00
|
|
|
insopts -m644
|
2022-01-20 17:50:24 +01:00
|
|
|
doins -r "${FILESDIR}"/PinePhone.conf
|
2022-01-20 23:12:52 +01:00
|
|
|
|
|
|
|
#PinePhone Pro Configs
|
2022-01-20 17:42:58 +01:00
|
|
|
insinto /usr/share/alsa/ucm2/PinePhonePro/HiFi.conf
|
2022-01-20 23:09:42 +01:00
|
|
|
insopts -m644
|
|
|
|
fperms 644
|
2022-01-20 23:12:52 +01:00
|
|
|
doins "${FILESDIR}"/PinePhonePro-HiFi.conf
|
2022-01-20 17:42:58 +01:00
|
|
|
|
|
|
|
insinto /usr/share/alsa/ucm2/PinePhonePro/VoiceCall.conf
|
2022-01-20 23:09:42 +01:00
|
|
|
insopts -m644
|
|
|
|
fperms 644
|
2022-01-20 23:12:52 +01:00
|
|
|
doins "${FILESDIR}"/PinePhonePro-VoiceCall.conf
|
2022-01-20 17:42:58 +01:00
|
|
|
|
|
|
|
insinto /usr/share/alsa/ucm2/PinePhonePro/PinePhonePro.conf
|
2022-01-20 23:09:42 +01:00
|
|
|
insopts -m644
|
|
|
|
fperms 644
|
2022-01-20 23:12:52 +01:00
|
|
|
doins "${FILESDIR}"/PinePhonePro.conf
|
2022-01-10 19:14:12 +01:00
|
|
|
|
2022-01-20 23:12:52 +01:00
|
|
|
#Create Symlinks
|
2022-01-10 19:57:16 +01:00
|
|
|
dosym /usr/share/alsa/ucm2/PinePhone/PinePhone.conf \
|
2022-01-10 19:39:06 +01:00
|
|
|
/usr/share/alsa/ucm2/conf.d/simple-card/PinePhone.conf
|
2022-01-10 19:57:16 +01:00
|
|
|
|
|
|
|
dosym /usr/share/alsa/ucm2/PinePhonePro/PinePhonePro.conf \
|
2022-01-10 19:39:06 +01:00
|
|
|
/usr/share/alsa/ucm2/conf.d/simple-card/PinePhonePro.conf
|
|
|
|
|
2021-12-15 10:51:17 +01:00
|
|
|
}
|