gjdwebserver-overlay/media-libs/alsa-ucm-pinephone/alsa-ucm-pinephone-1.2.6.3....

46 lines
1.3 KiB
Bash
Raw Normal View History

# 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-01-10 14:00:24 +01:00
COMMIT="ec0ef36b8b897ed1ae6bb0d0de13d5776f5d3659"
2021-12-15 10:51:17 +01:00
2022-02-14 13:10:45 +01:00
MY_PN="pine64-alsa-ucm"
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"
2022-02-14 13:10:45 +01:00
SRC_URI="https://gitlab.com/pine64-org/${MY_PN}/-/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_PN}-alsa-ucm-${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
doins "${S}"/ucm2/PinePhone/HiFi.conf
doins "${S}"/ucm2/PinePhone/VoiceCall.conf
2022-01-21 00:31:01 +01:00
doins "${FILESDIR}"/PinePhone.conf
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
doins "${S}"/ucm2/PinePhonePro/HiFi.conf
doins "${S}"/ucm2/PinePhonePro/VoiceCall.conf
2022-01-21 00:31:01 +01:00
doins "${FILESDIR}"/PinePhonePro.conf
2022-02-14 13:10:45 +01:00
# 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
2021-12-15 10:51:17 +01:00
}