dev-python/conda-libmamba-solver: bump version to 24.11.1
[gentoo-zh.git] / media-video / amdgpu-pro-amf / amdgpu-pro-amf-1.4.29.1538781.ebuild
blobcbda729c45f1d229754b5bee891602d92536ede7
1 # Copyright 1999-2022 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit unpacker
8 MY_PV_HIGH=$(ver_cut 1)
9 MY_PV_MIDDLE=$(ver_cut 2)
10 MY_PV_LOW=$(ver_cut 3)
11 MY_PV_REV=$(ver_cut 4)
13 MY_PV="${MY_PV_HIGH}.${MY_PV_MIDDLE}.${MY_PV_LOW}"
14 MY_PV_FULL="${MY_PV}-${MY_PV_REV}"
15 MY_PN="amf-amdgpu-pro"
17 PRO_VULKAN_PKG_VER="5.4.3"
18 UBUNTU_VER="22.04"
20 DESCRIPTION="AMD's closed source Advanced Media Framework (AMF) driver"
21 HOMEPAGE="https://www.amd.com/en/support"
22 SRC_URI="https://repo.radeon.com/amdgpu/${PRO_VULKAN_PKG_VER}/ubuntu/pool/proprietary/a/${MY_PN}/${MY_PN}_${MY_PV_FULL}.${UBUNTU_VER}_amd64.deb -> ${P}.deb"
24 S="${WORKDIR}"
26 RESTRICT="bindist mirror"
28 LICENSE="AMD-GPU-PRO-EULA"
29 SLOT="0"
30 KEYWORDS="-* ~amd64"
32 RDEPEND="
33 media-libs/amdgpu-pro-vulkan
34 media-libs/libglvnd
35 x11-libs/libdrm
36 x11-libs/libX11
39 QA_PREBUILT="
40 usr/lib64/libamfrt64.so*
43 src_unpack() {
44 mkdir "${S}/${PN}-amd64" || die
45 cd "${S}/${PN}-amd64" || die
46 unpack_deb "${DISTDIR}/${P}.deb"
49 src_install() {
50 insinto "/usr/$(get_libdir)"
52 # AMF
53 doins "${S}/${PN}-amd64/opt/amdgpu-pro/lib/x86_64-linux-gnu/libamfrt64.so.${MY_PV}"
54 dosym "libamfrt64.so.${MY_PV}" "/usr/$(get_libdir)/libamfrt64.so.1"
55 dosym "libamfrt64.so.${MY_PV}" "/usr/$(get_libdir)/libamfrt64.so"