mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-01 14:02:24 +01:00
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=ethtool
|
|
pkgver=5.13
|
|
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:bashcomp:noarch"
|
|
source="https://www.kernel.org/pub/software/network/ethtool/ethtool-$pkgver.tar.xz"
|
|
[ "$CARCH" = "s390x" ] && options="!check" # failing tests but we need it anyway
|
|
|
|
build() {
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--mandir=/usr/share/man
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
bashcomp() {
|
|
depends=""
|
|
pkgdesc="Bash completions for $pkgname"
|
|
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
|
|
|
|
amove usr/share/bash-completion/completions
|
|
}
|
|
|
|
sha512sums="
|
|
44426653aabd20707d2e597707113f4d30d12696b4f32c0ab0450af0dccece1b6a11e529a22d1299204f63c9e71ae41a1495d3d36b8f630f1734a72694d779be ethtool-5.13.tar.xz
|
|
"
|