diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5ce179e710c4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> + +pkgname=ethtool-git +pkgver=4.10.r9.gb888f35 +pkgrel=1 +pkgdesc="Utility for controlling network drivers and hardware" +arch=('i686' 'x86_64') +url="https://www.kernel.org/pub/software/network/ethtool/" +license=('GPL2') +depends=('glibc') +makedepends=('git') +provides=('ethtool') +conflicts=('ethtool') +source=("git+https://git.kernel.org/pub/scm/network/ethtool/ethtool.git") +sha256sums=('SKIP') + + +pkgver() { + cd "ethtool" + + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "ethtool" + + ./autogen.sh + ./configure --prefix="/usr" --sbindir="/usr/bin" + make +} + +check() { + cd "ethtool" + + make check +} + +package() { + cd "ethtool" + + make DESTDIR="$pkgdir" install +} |