PKGBUILDs/alarm/amzn-ena-aarch64-dkms/PKGBUILD
2024-03-08 08:32:29 -07:00

21 lines
879 B
Bash

# Maintainer: iDigitalFlame <idf@idfla.me>
pkgname="amzn-ena-aarch64-dkms"
pkgver="2.12.0"
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=("af02fe96fdc9a33e910fee35957c40af91596e4d9a5e7d0a6eaff604cf8cf770"
"a1f15bfe777d7939163773a97019ee86453f9ecc495baa81267f34c56d477d1c")
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"
}