1 |
commit: abeae71c7514b0161daed7e35404cf9e42d9fb5b |
2 |
Author: Gerben Jan Dijkman <gjdijkman <AT> gjdwebserver <DOT> nl> |
3 |
AuthorDate: Thu Jan 20 23:32:22 2022 +0000 |
4 |
Commit: Gerben Jan Dijkman <gjdijkman <AT> gjdwebserver <DOT> nl> |
5 |
CommitDate: Thu Jan 20 23:32:22 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=abeae71c |
7 |
|
8 |
media-libs/alsa-ucm-pinephone: Added PinePhone Pro support and move to releases |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Gerben Jan Dijkman <gjdijkman <AT> gjdwebserver.nl> |
12 |
|
13 |
media-libs/alsa-ucm-pinephone/Manifest | 2 +- |
14 |
.../alsa-ucm-pinephone-1.2.6.3.ebuild | 64 ++++++++++++++++++++++ |
15 |
.../alsa-ucm-pinephone-20220102.ebuild | 29 ---------- |
16 |
media-libs/alsa-ucm-pinephone/files/PinePhone.conf | 11 ++++ |
17 |
.../alsa-ucm-pinephone/files/PinePhonePro.conf | 16 ++++++ |
18 |
5 files changed, 92 insertions(+), 30 deletions(-) |
19 |
|
20 |
diff --git a/media-libs/alsa-ucm-pinephone/Manifest b/media-libs/alsa-ucm-pinephone/Manifest |
21 |
index 92f48c825..6336cd334 100644 |
22 |
--- a/media-libs/alsa-ucm-pinephone/Manifest |
23 |
+++ b/media-libs/alsa-ucm-pinephone/Manifest |
24 |
@@ -1 +1 @@ |
25 |
-DIST alsa-ucm-pinephone-20220102.tar.gz 3791 BLAKE2B 05a1576e173bda038d99ca92d9e97faa04388960745ca6571860eaedc975dec5883f8966c4ae11c3065345af82bb59f9f83af28bbbed89a59720eecf9f8d9438 SHA512 02934d117db9a9909554dc8d84151f7d71a7afb43a08b5d3b2a7cf3a0c9783274eba79a614fc44fa0ced74ada22cebde4366544dd928e20f03f42c168490c6fc |
26 |
+DIST alsa-ucm-pinephone-1.2.6.3.tar.gz 4441 BLAKE2B 5999331e9769c60d1989248749b9c15a6804cf732299d11ea63107fc1afef7715c3ec30e7e1a15ac782e28d72fbb9a6748ae319244cef617ffc5d50d1b54b1b8 SHA512 2ced0519ade14a3865043d4e3cdab58072ab7ec1915f0fcb74dd7ecaa566074fca5f2d63ee9d6e86d013dd45b92da5892f9ec18025855c8d665a327c06212711 |
27 |
|
28 |
diff --git a/media-libs/alsa-ucm-pinephone/alsa-ucm-pinephone-1.2.6.3.ebuild b/media-libs/alsa-ucm-pinephone/alsa-ucm-pinephone-1.2.6.3.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000..79612e726 |
31 |
--- /dev/null |
32 |
+++ b/media-libs/alsa-ucm-pinephone/alsa-ucm-pinephone-1.2.6.3.ebuild |
33 |
@@ -0,0 +1,64 @@ |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+COMMIT="ec0ef36b8b897ed1ae6bb0d0de13d5776f5d3659" |
40 |
+ |
41 |
+DESCRIPTION="ALSA ucm configuration files for the PinePhone (Pro)" |
42 |
+HOMEPAGE="https://gitlab.com/pine64-org/pine64-alsa-ucm" |
43 |
+SRC_URI="https://gitlab.com/pine64-org/pine64-alsa-ucm/-/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="BSD" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~arm64" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ >=media-libs/alsa-topology-conf-1.2.5 |
51 |
+ >=media-libs/alsa-lib-1.2.6 |
52 |
+ >=media-plugins/alsa-plugins-1.2.6 |
53 |
+ >=media-libs/alsa-ucm-conf-1.2.6 |
54 |
+ >=media-video/pipewire-0.3.42 |
55 |
+ " |
56 |
+ |
57 |
+DEPEND="${RDEPEND}" |
58 |
+ |
59 |
+BDEPEND="${RDEPEND}" |
60 |
+ |
61 |
+S="${WORKDIR}/pine64-alsa-ucm-${COMMIT}" |
62 |
+ |
63 |
+src_install() { |
64 |
+ #PinePhone Configs |
65 |
+ insinto /usr/share/alsa/ucm2/PinePhone/ |
66 |
+ insopts -m644 |
67 |
+ doins "${S}"/ucm2/PinePhone/HiFi.conf |
68 |
+ |
69 |
+ insinto /usr/share/alsa/ucm2/PinePhone/ |
70 |
+ insopts -m644 |
71 |
+ doins "${S}"/ucm2/PinePhone/VoiceCall.conf |
72 |
+ |
73 |
+ insinto /usr/share/alsa/ucm2/PinePhone/ |
74 |
+ insopts -m644 |
75 |
+ doins "${FILESDIR}"/PinePhone.conf |
76 |
+ |
77 |
+ #PinePhone Pro Configs |
78 |
+ insinto /usr/share/alsa/ucm2/PinePhonePro/ |
79 |
+ insopts -m644 |
80 |
+ doins "${S}"/ucm2/PinePhonePro/HiFi.conf |
81 |
+ |
82 |
+ insinto /usr/share/alsa/ucm2/PinePhonePro/ |
83 |
+ insopts -m644 |
84 |
+ doins "${S}"/ucm2/PinePhonePro/VoiceCall.conf |
85 |
+ |
86 |
+ insinto /usr/share/alsa/ucm2/PinePhonePro/ |
87 |
+ insopts -m644 |
88 |
+ doins "${FILESDIR}"/PinePhonePro.conf |
89 |
+ |
90 |
+ #Create Symlinks |
91 |
+ dosym /usr/share/alsa/ucm2/PinePhone/PinePhone.conf \ |
92 |
+ /usr/share/alsa/ucm2/conf.d/simple-card/PinePhone.conf |
93 |
+ |
94 |
+ dosym /usr/share/alsa/ucm2/PinePhonePro/PinePhonePro.conf \ |
95 |
+ /usr/share/alsa/ucm2/conf.d/simple-card/PinePhonePro.conf |
96 |
+ |
97 |
+} |
98 |
|
99 |
diff --git a/media-libs/alsa-ucm-pinephone/alsa-ucm-pinephone-20220102.ebuild b/media-libs/alsa-ucm-pinephone/alsa-ucm-pinephone-20220102.ebuild |
100 |
deleted file mode 100644 |
101 |
index e2c290d25..000000000 |
102 |
--- a/media-libs/alsa-ucm-pinephone/alsa-ucm-pinephone-20220102.ebuild |
103 |
+++ /dev/null |
104 |
@@ -1,29 +0,0 @@ |
105 |
-# Copyright 1999-2022 Gentoo Authors |
106 |
-# Distributed under the terms of the GNU General Public License v2 |
107 |
- |
108 |
-EAPI=7 |
109 |
- |
110 |
-COMMIT="ff6beb59a927c3f3744261b35a5fb65682073e80" |
111 |
- |
112 |
-DESCRIPTION="ALSA ucm configuration files for PinePhone bases on the Manjaro ARM repo" |
113 |
-HOMEPAGE="https://gitlab.manjaro.org/manjaro-arm/packages/community/pinephone/alsa-ucm-pinephone" |
114 |
-SRC_URI="https://gitlab.manjaro.org/manjaro-arm/packages/community/pinephone/alsa-ucm-pinephone/-/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
115 |
- |
116 |
-LICENSE="BSD" |
117 |
-SLOT="0" |
118 |
-KEYWORDS="~arm64" |
119 |
- |
120 |
-RDEPEND=" |
121 |
- >=media-libs/alsa-ucm-conf-1.2.6 |
122 |
- " |
123 |
- |
124 |
-DEPEND="${RDEPEND}" |
125 |
- |
126 |
-BDEPEND="${RDEPEND}" |
127 |
- |
128 |
-S="${WORKDIR}/alsa-ucm-pinephone-${COMMIT}" |
129 |
- |
130 |
-src_install() { |
131 |
- insinto /usr/share/alsa/ucm2/PinePhone |
132 |
- doins -r "${S}"/*.conf |
133 |
-} |
134 |
|
135 |
diff --git a/media-libs/alsa-ucm-pinephone/files/PinePhone.conf b/media-libs/alsa-ucm-pinephone/files/PinePhone.conf |
136 |
new file mode 100644 |
137 |
index 000000000..d136c4ca0 |
138 |
--- /dev/null |
139 |
+++ b/media-libs/alsa-ucm-pinephone/files/PinePhone.conf |
140 |
@@ -0,0 +1,11 @@ |
141 |
+Syntax 2 |
142 |
+ |
143 |
+SectionUseCase."HiFi" { |
144 |
+ File "/PinePhone/HiFi.conf" |
145 |
+ Comment "Play HiFi quality music" |
146 |
+} |
147 |
+ |
148 |
+SectionUseCase."Voice Call" { |
149 |
+ File "/PinePhone/VoiceCall.conf" |
150 |
+ Comment "Make a phone call" |
151 |
+} |
152 |
|
153 |
diff --git a/media-libs/alsa-ucm-pinephone/files/PinePhonePro.conf b/media-libs/alsa-ucm-pinephone/files/PinePhonePro.conf |
154 |
new file mode 100644 |
155 |
index 000000000..0c146ecfd |
156 |
--- /dev/null |
157 |
+++ b/media-libs/alsa-ucm-pinephone/files/PinePhonePro.conf |
158 |
@@ -0,0 +1,16 @@ |
159 |
+Syntax 4 |
160 |
+Comment "PinePhone Pro" |
161 |
+ |
162 |
+SectionUseCase."HiFi" { |
163 |
+ File "/PinePhonePro/HiFi.conf" |
164 |
+ Comment "Play HiFi quality music" |
165 |
+} |
166 |
+ |
167 |
+SectionUseCase."Voice Call" { |
168 |
+ File "/PinePhonePro/VoiceCall.conf" |
169 |
+ Comment "Make a phone call" |
170 |
+} |
171 |
+ |
172 |
+Include.card-init.File "/lib/card-init.conf" |
173 |
+Include.ctl-remap.File "/lib/ctl-remap.conf" |
174 |
+Include.codec-init.File "/codecs/rt5640/init.conf" |