APKBUILD 788 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ethtool
3
pkgver=4.19
Natanael Copa's avatar
Natanael Copa committed
4
pkgrel=0
prspkt's avatar
prspkt committed
5
pkgdesc="Utility for controlling network drivers and hardware"
6
url="https://mirrors.edge.kernel.org/pub/software/network/ethtool/"
7
arch="all"
8
license="GPL-2.0"
Natanael Copa's avatar
Natanael Copa committed
9
makedepends="linux-headers"
Natanael Copa's avatar
Natanael Copa committed
10
subpackages="$pkgname-doc"
11
source="https://www.kernel.org/pub/software/network/ethtool/ethtool-$pkgver.tar.xz"
12

Natanael Copa's avatar
Natanael Copa committed
13
build() {
14
	cd "$builddir"
15 16 17 18
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
19 20
		--mandir=/usr/share/man
	make
Natanael Copa's avatar
Natanael Copa committed
21 22
}

23 24 25 26 27
check() {
	cd "$builddir"
	make check
}

Natanael Copa's avatar
Natanael Copa committed
28
package() {
29 30
	cd "$builddir"
	make DESTDIR="$pkgdir" install
Natanael Copa's avatar
Natanael Copa committed
31
}
Natanael Copa's avatar
Natanael Copa committed
32

33
sha512sums="5b0b83e09799a04e401563e34c4c784029803ecf83d5ba4f3a9cc92bfc7c2bc9cb0d86cb76ac9a7ffbfb379f6a0fc4bc3e0cf9b7826971e46504052e40156abd  ethtool-4.19.tar.xz"