Files
pmaports-rtwo/device/community/oem-amd/APKBUILD
T
Aster Boese ab7a887f16 treewide: finish moving community firmware under /usr/
Modifies mkinitfs *.files files to expect firmware under `/usr/lib/` and
cleans up firmware installs missed by the initial migration.

https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4354

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8450>
2026-05-18 12:40:26 +00:00

52 lines
1.2 KiB
Bash

maintainer="Clayton Craft <clayton@craftyguy.net>"
pkgname=oem-amd
pkgdesc="AMD device support"
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="x86_64"
options="!check !archcheck"
depends="
alsa-ucm-conf
amd-ucode
linux-firmware-amdgpu
"
subpackages="
$pkgname-libva
$pkgname-vulkan
"
source="
00-amdgpu-firmware.files
00-oem-amd.modules
"
package() {
mkdir -p "$pkgdir"
install -Dm644 00-oem-amd.modules \
-t "$pkgdir"/usr/share/mkinitfs/modules
install -Dm644 00-amdgpu-firmware.files \
-t "$pkgdir"/usr/share/mkinitfs/files
}
libva() {
pkgdesc="libva support for AMD devices"
install_if="$pkgname=$pkgver-r$pkgrel libva"
depends="mesa-va-gallium"
mkdir "$subpkgdir"
}
vulkan() {
pkgdesc="vulkan support for AMD devices"
install_if="$pkgname=$pkgver-r$pkgrel vulkan-loader"
depends="mesa-vulkan-ati"
mkdir "$subpkgdir"
}
sha512sums="
1a609a9e3f693cbb8107a3f028247edabb550cbce9d263da299a5445d80282e4f317a0cae446b3b46070b2ddefce3fe4edde74b9147b4dbc1c5385622e861189 00-amdgpu-firmware.files
f56b5293f88727bb4fcceb2a347527402dd0938e96403461b1e2a6821cc00a4e680f58770addd7ba1ded20a187f91ccfd6270bc8bd28c6eae75cc075952361ca 00-oem-amd.modules
"