summaryrefslogtreecommitdiffstats
path: root/main/ethtool/APKBUILD
blob: 4dbca2a601ce0a4a0d015ae161205fd1d07a0cab (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
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ethtool
pkgver=3.10
pkgrel=1
pkgdesc="gkernel ethtool"
url="http://sourceforge.net/projects/gkernel/"
arch="all"
license="GPL2"
depends=""
makedepends=""
source="http://www.kernel.org/pub/software/network/ethtool/ethtool-$pkgver.tar.xz
	stdint.patch"
subpackages="$pkgname-doc"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="d1930df6e70a5204e8154a9911992be4  ethtool-3.10.tar.xz
f953365fe8ba94849f72016090d5e892  stdint.patch"
sha256sums="f88d941b63a0e51613bde5498d42f4ee2eefa332064e7a8dd80069a341dc1c40  ethtool-3.10.tar.xz
ef1df6825715164bcf9140f8b91ffd9fdc0256a8305c9dc6960ef8e3cfa98042  stdint.patch"
sha512sums="b7a28e70f92854abb47e61cd927d93b2716407b77d20253e0b21d225e7033d466772677215d2c7b1a811504e8d00e438b47abcf2448c79488dc677bb0ce2183b  ethtool-3.10.tar.xz
c8a602dd814d57728ca66b5257d6b9a990b145a783e61edbe5e09d99a1e8f8b111d936f4b369b239a31f86383ea6fd8cef3f7524d993be6e318d817ab534e422  stdint.patch"