aboutsummaryrefslogtreecommitdiffstats
path: root/main/ethtool/APKBUILD
blob: a7603e5626663f07b8146242bd87fabbacc67b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ethtool
pkgver=4.17
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"
makedepends="linux-headers"
subpackages="$pkgname-doc"
source="https://www.kernel.org/pub/software/network/ethtool/ethtool-$pkgver.tar.xz"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="9c8f72e32c480ec4ece7ca49acb8af668989e1e32fb1e6b884bbb6f2ffefc2a5241b5f278766e51ab01772b4f7437d7556354583c5bb63fc59ac6daecb046e8e  ethtool-4.17.tar.xz"