# Contributor: Leo # Maintainer: Natanael Copa pkgname=ethtool pkgver=6.4 pkgrel=0 pkgdesc="Utility for controlling network drivers and hardware" url="https://mirrors.edge.kernel.org/pub/software/network/ethtool/" arch="all" license="GPL-2.0-only" makedepends="linux-headers libmnl-dev" subpackages="$pkgname-doc $pkgname-bash-completion" source="https://www.kernel.org/pub/software/network/ethtool/ethtool-$pkgver.tar.xz" build() { CFLAGS="$CFLAGS -flto=auto" \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --mandir=/usr/share/man make } check() { make check } package() { make DESTDIR="$pkgdir" install } sha512sums=" 5e389564b41e9494df102f9fb703ae2d80ba38346d84ec6c89b024ec21c85eca9f58e88012290feaa88d3ce035d6f779913798b0ca177e8d0a08eff197eb6afd ethtool-6.4.tar.xz "