Compare commits
11 Commits
55c97eb708
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 4e4cbef6ab | |||
| 55a9f5ac35 | |||
| 7febc38340 | |||
| b8bba39b74 | |||
| 411daaa5c4 | |||
| 6c42826869 | |||
| aac163b89b | |||
| 7ba4cac92c | |||
| ffff17200a | |||
| 8c0fcf1553 | |||
|
|
32173db78b |
34
.gitea/actions/copy-latest-ebuild-as/action.yml
Normal file
34
.gitea/actions/copy-latest-ebuild-as/action.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
name: "Copy the latest ebuild for the package as version given"
|
||||
description: "Checks if the ebuild with the specified version exists and if not - copies the latest existing one over"
|
||||
inputs:
|
||||
atom:
|
||||
description: "category/name package atom"
|
||||
required: true
|
||||
version:
|
||||
description: "the desired version of the ebuild"
|
||||
required: true
|
||||
outputs:
|
||||
message:
|
||||
description: "space separated list of versions added"
|
||||
value: ${{ steps.copy.outputs.message }}
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- id: copy
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
ebuild_dir="./${{ inputs.atom }}"
|
||||
name=$(basename "${{ inputs.atom }}")
|
||||
want_ebuild="${ebuild_dir}/${name}-${{ inputs.version }}.ebuild"
|
||||
message=""
|
||||
if [[ -f "${want_ebuild}" ]]; then
|
||||
echo "Ebuild already exists"
|
||||
else
|
||||
existing_ebuilds=( "${ebuild_dir}"/*.ebuild )
|
||||
latest_existing_ebuild="${existing_ebuilds[-1]}"
|
||||
echo "Copying ${latest_existing_ebuild} to ${want_ebuild}"
|
||||
cp "${latest_existing_ebuild}" "${want_ebuild}"
|
||||
message="add ${{ inputs.version }}"
|
||||
fi
|
||||
echo "message=${message}" >> "${GITHUB_OUTPUT}"
|
||||
37
.gitea/actions/drop-ebuilds-matching/action.yml
Normal file
37
.gitea/actions/drop-ebuilds-matching/action.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
name: "Drop ebuilds matching the condition"
|
||||
description: "Checks if any ebuild for the package matches the condition and if so - removes them"
|
||||
inputs:
|
||||
atom:
|
||||
description: "category/name package atom"
|
||||
required: true
|
||||
condition:
|
||||
description: "version condition used to match ebuilds to drop"
|
||||
required: true
|
||||
outputs:
|
||||
message:
|
||||
description: "space-separated list of removed ebuild versions"
|
||||
runs:
|
||||
using: docker
|
||||
image: docker://git.ratigorsk-12.ru/gentoo/portage-utils-docker:master
|
||||
entrypoint: /bin/bash
|
||||
args:
|
||||
- -c
|
||||
- |
|
||||
set -euo pipefail
|
||||
condition_atom=$(echo "${{inputs.condition}}" | sed -r 's:^(<|>)=?:\0${{inputs.atom}}-:')
|
||||
existing_ebuilds=( "./${{inputs.atom}}"/*.ebuild )
|
||||
category=$(dirname "${{inputs.atom}}")
|
||||
message=""
|
||||
for ebuild in ${existing_ebuilds[@]}; do
|
||||
p="=${category}/$(basename "${ebuild%.*}")"
|
||||
echo "Checking ${p} vs ${condition_atom}"
|
||||
if qatom -qc "${p}" "${condition_atom}" | grep -cq '=='; then
|
||||
echo "Removing ${ebuild}"
|
||||
rm -f "${ebuild}"
|
||||
if [[ -z "${message}" ]]; then
|
||||
message="drop"
|
||||
fi
|
||||
message="${message} `qatom -F '%{PV}' "${p}"`"
|
||||
fi;
|
||||
done;
|
||||
echo "message=${message}" >> "${GITHUB_OUTPUT}"
|
||||
26
.gitea/actions/fetch-electron-update/action.yml
Normal file
26
.gitea/actions/fetch-electron-update/action.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: "Fetch the electron-updater manifest"
|
||||
description: "Check the specified manifest and extract the version and deprecated versions"
|
||||
inputs:
|
||||
url:
|
||||
description: "electron-updater update manifest url to check"
|
||||
required: true
|
||||
outputs:
|
||||
version:
|
||||
description: "Latest version for the package"
|
||||
deprecated_versions:
|
||||
description: "A condition string for deprecated packages"
|
||||
runs:
|
||||
using: docker
|
||||
image: docker://linuxserver/yq
|
||||
entrypoint: /bin/bash
|
||||
args:
|
||||
- -c
|
||||
- |
|
||||
set -euo pipefail
|
||||
manifest=$(mktemp)
|
||||
curl -L -s "${{ inputs.url }}" | yq -r '.version, .commonConfig.DEPRECATED_VERSIONS' | (
|
||||
read version;
|
||||
read deprecated;
|
||||
echo "version=${version}" >> "${GITHUB_OUTPUT}"
|
||||
echo "deprecated_versions=${deprecated}" >> "${GITHUB_OUTPUT}"
|
||||
)
|
||||
23
.gitea/actions/pkgdev-manifest/action.yml
Normal file
23
.gitea/actions/pkgdev-manifest/action.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
name: "Construct manifests using pkgdev"
|
||||
description: "Construct manifest using pkgdev"
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Cache pkgdev
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: |
|
||||
~/.cache/pkgcore
|
||||
~/.cache/pkgcheck
|
||||
~/.cache/distfiles
|
||||
key: pkgdev
|
||||
- name: Run pkgdev manifest
|
||||
uses: docker://git.ratigorsk-12.ru/gentoo/pkgdev-docker:master
|
||||
with:
|
||||
args: >
|
||||
-c '
|
||||
set -euo pipefail
|
||||
|
||||
pmaint sync gentoo
|
||||
pkgdev manifest -d ~/.cache/distfiles
|
||||
'
|
||||
18
.gitea/actions/update-electron-bin-ebuild/action.yml
Normal file
18
.gitea/actions/update-electron-bin-ebuild/action.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
name: "Update electron app bin ebuild if needed"
|
||||
description: "Check the update manifest and copy an existing version ebuild if a new version is out"
|
||||
inputs:
|
||||
atom:
|
||||
description: "category/name specifying the ebuild to update"
|
||||
required: true
|
||||
update-url:
|
||||
description: "electron-updater update manifest url to check"
|
||||
required: true
|
||||
outputs:
|
||||
changes:
|
||||
description: "if any changes were produced"
|
||||
runs:
|
||||
using: "docker"
|
||||
image: "Dockerfile"
|
||||
args:
|
||||
- ${{inputs.atom}}
|
||||
- ${{inputs.update-url}}
|
||||
40
.gitea/actions/update-electron-bin-ebuild/entrypoint.sh
Executable file
40
.gitea/actions/update-electron-bin-ebuild/entrypoint.sh
Executable file
@@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
atom="${1}"
|
||||
update_url="${2}"
|
||||
|
||||
echo "Fetching update manifest from ${update_url}"
|
||||
update_manifest=$(mktemp)
|
||||
curl --follow -s -o "${update_manifest}" "${update_url}"
|
||||
|
||||
latest_version=$(yq -r '.version' "${update_manifest}")
|
||||
echo "Latest version: ${latest_version}"
|
||||
|
||||
if [[ -z "${latest_version}" ]]; then
|
||||
echo "No version tag in the downloaded manifest" >&2
|
||||
cat "${update_manifest}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ebuild_dir="${GITHUB_WORKSPACE}/$atom"
|
||||
latest_ebuild="${ebuild_dir}/yandex-music-${latest_version}.ebuild"
|
||||
|
||||
if [[ -f "${latest_ebuild}" ]]; then
|
||||
echo "Ebuild for version ${latest_version} already exists"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "New version detected: ${latest_version}"
|
||||
|
||||
existing_ebuilds=( "${ebuild_dir}"/*.ebuild )
|
||||
latest_existing_ebuild="${existing_ebuilds[-1]}"
|
||||
|
||||
if [[ -z "${latest_existing_ebuild}" ]]; then
|
||||
echo "Error: No existing ebuild found to copy from" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Copying ${latest_existing_ebuild} to ${latest_ebuild}"
|
||||
cp "${latest_existing_ebuild}" "${latest_ebuild}"
|
||||
56
.gitea/workflows/yandex-music.yaml
Normal file
56
.gitea/workflows/yandex-music.yaml
Normal file
@@ -0,0 +1,56 @@
|
||||
name: yandex-music
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
- "actions"
|
||||
tags:
|
||||
- "v*"
|
||||
schedule:
|
||||
- cron: "0 * * * *"
|
||||
|
||||
jobs:
|
||||
check-and-update:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Fetch update manifest
|
||||
uses: ./.gitea/actions/fetch-electron-update
|
||||
id: manifest
|
||||
with:
|
||||
url: https://desktop.app.music.yandex.net/stable/latest-linux.yml
|
||||
|
||||
- name: Remove deprecated ebuilds
|
||||
uses: ./.gitea/actions/drop-ebuilds-matching
|
||||
id: cleanup
|
||||
with:
|
||||
atom: media-sound/yandex-music
|
||||
condition: ${{steps.manifest.outputs.deprecated_versions}}
|
||||
|
||||
- name: Create ebuild for latest version
|
||||
uses: ./.gitea/actions/copy-latest-ebuild-as
|
||||
id: latest
|
||||
with:
|
||||
atom: media-sound/yandex-music
|
||||
version: ${{steps.manifest.outputs.version}}
|
||||
|
||||
- name: Build new manifests
|
||||
uses: ./.gitea/actions/pkgdev-manifest
|
||||
|
||||
- name: Check repo for validity
|
||||
uses: pkgcore/pkgcheck-action@v1
|
||||
with:
|
||||
args: --keywords=-RedundantVersion media-sound/yandex-music
|
||||
|
||||
- name: Commit changes
|
||||
uses: EndBug/add-and-commit@v9
|
||||
if: ${{steps.latest.outputs.message != '' || steps.cleanup.outputs.message != ''}}
|
||||
with:
|
||||
add: media-sound/yandex-music
|
||||
author_name: Automation
|
||||
author_email: noreply@ratigorsk-12.ru
|
||||
message: ${{ format('media-sound/yandex-music {0} {1}', steps.cleanup.outputs.message, steps.latest.outputs.message) }}
|
||||
push: true
|
||||
1
licenses/Yandex-Music-EULA
Normal file
1
licenses/Yandex-Music-EULA
Normal file
@@ -0,0 +1 @@
|
||||
https://yandex.ru/legal/music_mobile_agreement/
|
||||
@@ -1,5 +1,5 @@
|
||||
DIST yandex-music-5.78.7.deb 92585384 BLAKE2B e783bdf0bc6f572344975ba122f77b92af4462e5a5e8274ef88bcfa285730dae8f8ceb35f38d6a32fc5df8224b458c5f387b820fbf415b33cd2e924332fcfe0c SHA512 bbe4bd768b218ef45805d2b7db83659ba0875c8ccf3c65b69ca46356268f2fcec0321dfd51a68bf3e77d2034d62f3c04067e6c7a5dab072018aa04eeeabd54ac
|
||||
DIST yandex-music-5.79.7.deb 92572126 BLAKE2B 0699449edf16bcf2d9e72c1ed885eecd42b26563e2750cc169e5f40b4cbfb925591420893b3350cee229ffa6fc745bf0fdcd8b806de7077a11a305fbad624cfb SHA512 cfc343e988dd07485f80d02b9525b2568539dc344cd5da853bc9ee81a9ac52314c33ca056b7bd9c9a9ec4631f5106d601946b37151765a6a7ad4f4a5889464b4
|
||||
DIST yandex-music-5.82.0.deb 92606352 BLAKE2B 9df62bd624698787df49eb1e688bc07546fb1d6b3a156076a31986f7cf61bb5f572ea89e8cb0060c9f918716b4af8bbb9975a61d6a70d1b8e9feb5d419e23391 SHA512 dd6ccd0cfdd2d937d5b0134bf5a1b5954cd0f43adc5507c49e53f234d687282d1e6f0b8c76c7bd72d67998a232c447e752054dd4de57ceb17d8caa7868dfca3a
|
||||
DIST yandex-music-5.83.0.deb 92586476 BLAKE2B 4f0a7db0e32dcc8a584ae57c37557876a1a675d2e3f11a47f8feefb52959639ff3452f8b394686f89feb54d6f976b7667ce8d23fbd632bbc8bcc9a6133651225 SHA512 4c8a637ff327edcf8d3e32991c0608841e987c3050f17f4467e90703a32b03781ebaebc9a2b5abd11585b78efcc98ec419de4547f8e3cc992baeac25190ceaca
|
||||
DIST yandex-music-5.84.1.deb 92619070 BLAKE2B df7684d8a9c910acfccce73d347afd83d88b2d8f8e6dd7b15caa73fb5da511eeb434740cb2300f47f5bc92f50ec3a3811b0b014472d7a6069accb19d99dc8123 SHA512 7214751c246596dfbc788f6ebd229fc43ddaf358d36cea8fb9ec7496377fa5ec55eb473791fea9f569e880fbae8e7635c3aaa795332d775721f0605454f9644e
|
||||
DIST yandex-music-5.88.0.deb 93678834 BLAKE2B 761d22f99b73d0d89483bee5c97f8973dfe0468a5d073fec6237ff5134b311d377689ad1614364d970b8f0a182a3c72eae17f5f33914e9de2e801e96345b6cc8 SHA512 26cb324646fa195094acd7b4578269d78561d87987f19349ba8ae05ad6675be23a3f8f9aca6ff76720b59eda59c6159b62b337d3f52b0bc755d50330cb1f0c92
|
||||
DIST yandex-music-5.89.0.deb 93766666 BLAKE2B 62d919428216c77395b05221ac69cdeb8d2e45abbc31939f1aadb4a263efd3e3ab34ecaff5601f9eaa6c56d13863295ddcbfb6b0aaa6a6d6870dac872775faad SHA512 977ab06f88b923b43ed21eca88d963d99078d4b932559ecdbdf566ea0590d9ad743b24b022c1618940d47e919ffa65cf1ec4febe6d477250fc9ea45697965575
|
||||
DIST yandex-music-5.90.0.deb 93754898 BLAKE2B 013327c8b6a539549d416e2dffda19cb2ea633098938e4727d49172d01e2228b357b684121bff155572f860f7879c7cdc1fbe99e742ae6b7b103a9c03c1a87e5 SHA512 a8992c32a2f67a2825661674365191e55aa9375c98c1bcd3b68c811db21ae22656ada1d48ea49c84bddcae49c1e0ea06f29c2398009dd9077fbe58dd74679d63
|
||||
DIST yandex-music-5.91.1.deb 93752812 BLAKE2B 133bfd55755a369885b4fbfdbbf2b61867178699833480f995f7f06310e64fa2e076608e35275a9584d055ba15a898c9e1b3f922d936b5192213ad1f6b720a0e SHA512 bb2da80f1f5b1b2726b40ed8663eacd923ee614a6f273de938fd2384bb8c21b20b5fed9e0f1ad53f6c81c6517f3481112a9e77f9b74001fe3f167034b3bfa6af
|
||||
DIST yandex-music-5.92.1.deb 93767688 BLAKE2B 2ac087ff2a3a4932d7d269839ebf58921baa9447c379acb244855634bf50ea8c6106ca9fcaddc0aa85c1f9da7436e2b885dec0781e99ebbf37ff3c9962a5cccd SHA512 b3c29b1bd03ffe6573ea898612e4333a5e2a5482d61983b685e6ca7d594cadb2ec91642f6372e3c9f8ae5a13d1675f877e294dab9e5b919111da6249ca901cac
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit xdg desktop unpacker
|
||||
|
||||
DESCRIPTION="Personal recommendations, mixes for any occasion and the latest musical releases"
|
||||
HOMEPAGE="https://music.yandex.ru/download/"
|
||||
SRC_URI="https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_amd64_${PV}.deb -> ${P}.deb"
|
||||
|
||||
LICENSE="Yandex-EULA"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/libnotify
|
||||
dev-libs/nss
|
||||
x11-libs/libXScrnSaver
|
||||
x11-libs/libXtst
|
||||
x11-misc/xdg-utils
|
||||
app-accessibility/at-spi2-core
|
||||
sys-apps/util-linux
|
||||
app-crypt/libsecret
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
QA_PRESTRIPPED="
|
||||
/opt/Яндекс\\ Музыка/libEGL.so
|
||||
/opt/Яндекс\\ Музыка/chrome-sandbox
|
||||
/opt/Яндекс\\ Музыка/chrome_crashpad_handler
|
||||
/opt/Яндекс\\ Музыка/libffmpeg.so
|
||||
/opt/Яндекс\\ Музыка/libvulkan.so.1
|
||||
/opt/Яндекс\\ Музыка/libGLESv2.so
|
||||
/opt/Яндекс\\ Музыка/libvk_swiftshader.so
|
||||
/opt/Яндекс\\ Музыка/yandexmusic
|
||||
"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_install() {
|
||||
gzip -d usr/share/doc/yandexmusic/changelog.gz
|
||||
mv usr/share/doc/yandexmusic usr/share/doc/${P}
|
||||
|
||||
insinto /
|
||||
doins -r opt
|
||||
doins -r usr
|
||||
|
||||
exeinto "/opt/Яндекс Музыка"
|
||||
doexe "opt/Яндекс Музыка/yandexmusic"
|
||||
doexe "opt/Яндекс Музыка/chrome-sandbox"
|
||||
doexe "opt/Яндекс Музыка/chrome_crashpad_handler"
|
||||
|
||||
dosym "/opt/Яндекс Музыка/yandexmusic" /usr/bin/yandexmusic
|
||||
|
||||
sed -i 's/Categories=Audio;/Categories=Audio;AudioVideo/' usr/share/applications/yandexmusic.desktop
|
||||
domenu usr/share/applications/yandexmusic.desktop
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
@@ -9,10 +9,11 @@ DESCRIPTION="Personal recommendations, mixes for any occasion and the latest mus
|
||||
HOMEPAGE="https://music.yandex.ru/download/"
|
||||
SRC_URI="https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_amd64_${PV}.deb -> ${P}.deb"
|
||||
|
||||
LICENSE="Yandex-EULA"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="Yandex-Music-EULA"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
x11-libs/gtk+:3
|
||||
@@ -26,7 +27,6 @@ DEPEND="
|
||||
app-crypt/libsecret
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
QA_PRESTRIPPED="
|
||||
/opt/Яндекс\\ Музыка/libEGL.so
|
||||
@@ -39,8 +39,6 @@ QA_PRESTRIPPED="
|
||||
/opt/Яндекс\\ Музыка/yandexmusic
|
||||
"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_install() {
|
||||
gzip -d usr/share/doc/yandexmusic/changelog.gz
|
||||
mv usr/share/doc/yandexmusic usr/share/doc/${P}
|
||||
@@ -54,7 +52,7 @@ src_install() {
|
||||
doexe "opt/Яндекс Музыка/chrome-sandbox"
|
||||
doexe "opt/Яндекс Музыка/chrome_crashpad_handler"
|
||||
|
||||
dosym "/opt/Яндекс Музыка/yandexmusic" /usr/bin/yandexmusic
|
||||
dosym "../../opt/Яндекс Музыка/yandexmusic" /usr/bin/yandexmusic
|
||||
|
||||
sed -i 's/Categories=Audio;/Categories=Audio;AudioVideo/' usr/share/applications/yandexmusic.desktop
|
||||
domenu usr/share/applications/yandexmusic.desktop
|
||||
@@ -9,10 +9,11 @@ DESCRIPTION="Personal recommendations, mixes for any occasion and the latest mus
|
||||
HOMEPAGE="https://music.yandex.ru/download/"
|
||||
SRC_URI="https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_amd64_${PV}.deb -> ${P}.deb"
|
||||
|
||||
LICENSE="Yandex-EULA"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="Yandex-Music-EULA"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
x11-libs/gtk+:3
|
||||
@@ -26,7 +27,6 @@ DEPEND="
|
||||
app-crypt/libsecret
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
QA_PRESTRIPPED="
|
||||
/opt/Яндекс\\ Музыка/libEGL.so
|
||||
@@ -39,8 +39,6 @@ QA_PRESTRIPPED="
|
||||
/opt/Яндекс\\ Музыка/yandexmusic
|
||||
"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_install() {
|
||||
gzip -d usr/share/doc/yandexmusic/changelog.gz
|
||||
mv usr/share/doc/yandexmusic usr/share/doc/${P}
|
||||
@@ -54,7 +52,7 @@ src_install() {
|
||||
doexe "opt/Яндекс Музыка/chrome-sandbox"
|
||||
doexe "opt/Яндекс Музыка/chrome_crashpad_handler"
|
||||
|
||||
dosym "/opt/Яндекс Музыка/yandexmusic" /usr/bin/yandexmusic
|
||||
dosym "../../opt/Яндекс Музыка/yandexmusic" /usr/bin/yandexmusic
|
||||
|
||||
sed -i 's/Categories=Audio;/Categories=Audio;AudioVideo/' usr/share/applications/yandexmusic.desktop
|
||||
domenu usr/share/applications/yandexmusic.desktop
|
||||
@@ -9,10 +9,11 @@ DESCRIPTION="Personal recommendations, mixes for any occasion and the latest mus
|
||||
HOMEPAGE="https://music.yandex.ru/download/"
|
||||
SRC_URI="https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_amd64_${PV}.deb -> ${P}.deb"
|
||||
|
||||
LICENSE="Yandex-EULA"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="Yandex-Music-EULA"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
x11-libs/gtk+:3
|
||||
@@ -26,7 +27,6 @@ DEPEND="
|
||||
app-crypt/libsecret
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
QA_PRESTRIPPED="
|
||||
/opt/Яндекс\\ Музыка/libEGL.so
|
||||
@@ -39,8 +39,6 @@ QA_PRESTRIPPED="
|
||||
/opt/Яндекс\\ Музыка/yandexmusic
|
||||
"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_install() {
|
||||
gzip -d usr/share/doc/yandexmusic/changelog.gz
|
||||
mv usr/share/doc/yandexmusic usr/share/doc/${P}
|
||||
@@ -54,7 +52,7 @@ src_install() {
|
||||
doexe "opt/Яндекс Музыка/chrome-sandbox"
|
||||
doexe "opt/Яндекс Музыка/chrome_crashpad_handler"
|
||||
|
||||
dosym "/opt/Яндекс Музыка/yandexmusic" /usr/bin/yandexmusic
|
||||
dosym "../../opt/Яндекс Музыка/yandexmusic" /usr/bin/yandexmusic
|
||||
|
||||
sed -i 's/Categories=Audio;/Categories=Audio;AudioVideo/' usr/share/applications/yandexmusic.desktop
|
||||
domenu usr/share/applications/yandexmusic.desktop
|
||||
@@ -9,10 +9,11 @@ DESCRIPTION="Personal recommendations, mixes for any occasion and the latest mus
|
||||
HOMEPAGE="https://music.yandex.ru/download/"
|
||||
SRC_URI="https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_amd64_${PV}.deb -> ${P}.deb"
|
||||
|
||||
LICENSE="Yandex-EULA"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="Yandex-Music-EULA"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
x11-libs/gtk+:3
|
||||
@@ -26,7 +27,6 @@ DEPEND="
|
||||
app-crypt/libsecret
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
QA_PRESTRIPPED="
|
||||
/opt/Яндекс\\ Музыка/libEGL.so
|
||||
@@ -39,8 +39,6 @@ QA_PRESTRIPPED="
|
||||
/opt/Яндекс\\ Музыка/yandexmusic
|
||||
"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_install() {
|
||||
gzip -d usr/share/doc/yandexmusic/changelog.gz
|
||||
mv usr/share/doc/yandexmusic usr/share/doc/${P}
|
||||
@@ -54,7 +52,7 @@ src_install() {
|
||||
doexe "opt/Яндекс Музыка/chrome-sandbox"
|
||||
doexe "opt/Яндекс Музыка/chrome_crashpad_handler"
|
||||
|
||||
dosym "/opt/Яндекс Музыка/yandexmusic" /usr/bin/yandexmusic
|
||||
dosym "../../opt/Яндекс Музыка/yandexmusic" /usr/bin/yandexmusic
|
||||
|
||||
sed -i 's/Categories=Audio;/Categories=Audio;AudioVideo/' usr/share/applications/yandexmusic.desktop
|
||||
domenu usr/share/applications/yandexmusic.desktop
|
||||
69
media-sound/yandex-music/yandex-music-5.92.1.ebuild
Normal file
69
media-sound/yandex-music/yandex-music-5.92.1.ebuild
Normal file
@@ -0,0 +1,69 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit xdg desktop unpacker
|
||||
|
||||
DESCRIPTION="Personal recommendations, mixes for any occasion and the latest musical releases"
|
||||
HOMEPAGE="https://music.yandex.ru/download/"
|
||||
SRC_URI="https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_amd64_${PV}.deb -> ${P}.deb"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="Yandex-Music-EULA"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/libnotify
|
||||
dev-libs/nss
|
||||
x11-libs/libXScrnSaver
|
||||
x11-libs/libXtst
|
||||
x11-misc/xdg-utils
|
||||
app-accessibility/at-spi2-core
|
||||
sys-apps/util-linux
|
||||
app-crypt/libsecret
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
QA_PRESTRIPPED="
|
||||
/opt/Яндекс\\ Музыка/libEGL.so
|
||||
/opt/Яндекс\\ Музыка/chrome-sandbox
|
||||
/opt/Яндекс\\ Музыка/chrome_crashpad_handler
|
||||
/opt/Яндекс\\ Музыка/libffmpeg.so
|
||||
/opt/Яндекс\\ Музыка/libvulkan.so.1
|
||||
/opt/Яндекс\\ Музыка/libGLESv2.so
|
||||
/opt/Яндекс\\ Музыка/libvk_swiftshader.so
|
||||
/opt/Яндекс\\ Музыка/yandexmusic
|
||||
"
|
||||
|
||||
src_install() {
|
||||
gzip -d usr/share/doc/yandexmusic/changelog.gz
|
||||
mv usr/share/doc/yandexmusic usr/share/doc/${P}
|
||||
|
||||
insinto /
|
||||
doins -r opt
|
||||
doins -r usr
|
||||
|
||||
exeinto "/opt/Яндекс Музыка"
|
||||
doexe "opt/Яндекс Музыка/yandexmusic"
|
||||
doexe "opt/Яндекс Музыка/chrome-sandbox"
|
||||
doexe "opt/Яндекс Музыка/chrome_crashpad_handler"
|
||||
|
||||
dosym "../../opt/Яндекс Музыка/yandexmusic" /usr/bin/yandexmusic
|
||||
|
||||
sed -i 's/Categories=Audio;/Categories=Audio;AudioVideo/' usr/share/applications/yandexmusic.desktop
|
||||
domenu usr/share/applications/yandexmusic.desktop
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
1
metadata/.gitignore
vendored
Normal file
1
metadata/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/md5-cache
|
||||
1
profiles/repo_name
Normal file
1
profiles/repo_name
Normal file
@@ -0,0 +1 @@
|
||||
ratigorsk-auto
|
||||
Reference in New Issue
Block a user