blob: 68f3d2c2102376a9a5af97cee4f7afb79bd3930a (
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
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=ethtool-git
pkgver=6.2.r15.g5cea673
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=$pkgver")
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
}
|