pmaports/device/community/oem-amd/APKBUILD

64 lines
1.4 KiB
Text
Raw Normal View History

2024-01-01 21:09:06 +00:00
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=oem-amd
pkgdesc="AMD device support"
pkgver=2
2024-01-01 21:09:06 +00:00
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="x86_64"
options="!check !archcheck"
# linux-firmware-none prevents all of linux-firmware-* from being installed by
# default
2024-01-01 21:09:06 +00:00
depends="
alsa-ucm-conf
linux-firmware-none
2024-01-01 21:09:06 +00:00
"
subpackages="
$pkgname-libva
$pkgname-nonfree-firmware:nonfree_firmware
2024-01-01 21:09:06 +00:00
$pkgname-vulkan
"
source="
00-amdgpu-firmware.files
00-oem-amd.modules
"
2024-01-01 21:09:06 +00:00
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
2024-01-01 21:09:06 +00:00
}
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"
}
nonfree_firmware() {
pkgdesc="Firmware for AMD devices"
depends="
amd-ucode
linux-firmware-amdgpu
"
mkdir -p "$subpkgdir"
}
sha512sums="
38c53d91a60d0402d4cc5428d65e1e8c26360c481c70b34593b1812c87241c32e91904a3bd31fbfe507f7fdb8b50c909eaad8c4c3a37ca962760567329f7f6ee 00-amdgpu-firmware.files
f56b5293f88727bb4fcceb2a347527402dd0938e96403461b1e2a6821cc00a4e680f58770addd7ba1ded20a187f91ccfd6270bc8bd28c6eae75cc075952361ca 00-oem-amd.modules
"