# Maintainer: Natanael Copa pkgname=ethtool pkgver=4.6 pkgrel=0 pkgdesc="gkernel ethtool" url="http://sourceforge.net/projects/gkernel/" arch="all" license="GPL2" depends="" makedepends="linux-headers" source="http://www.kernel.org/pub/software/network/ethtool/ethtool-$pkgver.tar.xz" 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="1492f173bb0157e91d60157fc6369b33 ethtool-4.6.tar.xz" sha256sums="e90589a9349d008cce8c0510ac4e8878efdc0ddb1b732a9a4cc333b101313415 ethtool-4.6.tar.xz" sha512sums="fb7cef1096dcc4bd156fc5dd8f85b157dfddf7257be185b6fe4a70f219f1a53ee972d91347ee831b085ba34e8d7c04d244e98cbaf85e0b4b166594b6b67e94e2 ethtool-4.6.tar.xz"