PKGBUILDs/alarm/amzn-ena-aarch64-dkms/PKGBUILD
2023-07-30 15:25:16 -06:00

21 lines
878 B
Bash

# Maintainer: iDigitalFlame <idf@idfla.me>
pkgname="amzn-ena-aarch64-dkms"
pkgver="2.8.8"
pkgrel="1"
pkgdesc="Linux kernel driver for Amazon's Elastic Network Adapter (ENA)"
arch=("aarch64")
url="https://github.com/amzn/amzn-drivers"
license=("GPL")
depends=("dkms" "linux-aarch64" "linux-aarch64-headers")
install="amzn-drivers.install"
source=("https://github.com/amzn/amzn-drivers/archive/refs/tags/ena_linux_${pkgver}.tar.gz"
"dkms.conf")
sha256sums=("5120c36426793a8b26bb625bdc3f6e489d46a1a8c9e760b8bbea67b10ff973ba"
"7662e95a38dedb6ccaf1c31c2156524201f22d72a4a4b9c664ba47c704f46b20")
buildarch=8
package() {
mkdir -p "${pkgdir}/usr/src" 2> /dev/null
cp -R "${srcdir}/amzn-drivers-ena_linux_${pkgver}/kernel/linux" "${pkgdir}/usr/src/amzn-drivers-${pkgver}"
install -Dm644 "dkms.conf" "${pkgdir}/usr/src/amzn-drivers-${pkgver}/dkms.conf"
}