PKGBUILDs/alarm/amzn-ena-aarch64-dkms/PKGBUILD

22 lines
878 B
Bash
Raw Normal View History

# Maintainer: iDigitalFlame <idf@idfla.me>
pkgname="amzn-ena-aarch64-dkms"
pkgver="2.8.9"
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=("6449eb8a526b7895119567efa3b1d5aff420fb7a389b6be910adb6af9ebb0901"
"368579721fdfb3bd9a82528d0b317ac63f9838ec34f1f1de3eb31998863ebf41")
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"
}