]> Arthur Taft Gitweb - custom-tools.git/blobdiff - media-sound/cider/cider-3.0.0.ebuild
switch versioning to better fit within ebuild writing guidelines
[custom-tools.git] / media-sound / cider / cider-3.0.0.ebuild
index d507342ba0a230fc4d7b8443c6e80e61ae59310a..1729b4a74cd2d5fdde952b16456b7dc1cbf5acd3 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -12,7 +12,7 @@ inherit chromium-2 desktop multilib-build pax-utils unpacker xdg
 
 DESCRIPTION="A new cross-platform Apple Music experience based on Electron"
 HOMEPAGE="https://cider.sh"
-SRC_URI="cider-v3.0.0-linux-x64.pkg.tar.zst"
+SRC_URI="${P}-linux-x64.pkg.tar.zst"
 S="${WORKDIR}"
 
 LICENSE="all-rights-reserved"
@@ -59,27 +59,7 @@ pkg_nofetch() {
        einfo "and place it into your DISTDIR directory"
 }
 
-#src_prepare() {
-#      default
-#      pushd lib/cider/locales || die "pushd failed"
-#      chromium_remove_language_paks
-#      popd || die "popd failed"
-#
-#      rm lib/cider/LICENSES.chromium.html \
-#              || die "rm licenses failed"
-#
-#      if ! use suid ; then
-#              rm lib/cider/chrome-sandbox || die "rm failed"
-#      fi
-#}
-
 src_install() {
-       doicon usr/lib/cider/resources/public/icon.png
-       dosym usr/lib/cider/resources/public/icon.png \
-               /usr/share/pixmaps/cider.png
-
-       domenu usr/share/applications/cider.desktop
-
        insinto /opt/Cider
        doins -r usr/.
        fperms -R +x /opt/Cider/bin/cider /opt/Cider/lib/cider/chrome_crashpad_handler \
@@ -87,7 +67,10 @@ src_install() {
                /opt/Cider/lib/cider/libvulkan.so.1
        use suid && fperms u+s,+x /opt/Cider/lib/cider/chrome-sandbox
 
-       dosym ../Cider/bin/cider usr/bin/cider
+       domenu /opt/Cider/share/applications/cider.desktop
+       dosym /opt/Cider/bin/cider /usr/bin/cider
+       dosym /opt/Cider/lib/cider/resources/public/icon.png /usr/share/pixmaps/cider.png
+       newicon -s 256 /opt/Cider/lib/cider/resources/public/icon.png cider.png
 
        pax-mark -m "${ED}"/opt/Cider/cider
 }