blob: 2bd28932dde8f9c244d4bd102f4b3330c3d90618 (
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.13
pkgrel=0
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="dcb8f345d44ee79108282e7d0bdf5013 ethtool-3.13.tar.xz
f953365fe8ba94849f72016090d5e892 stdint.patch"
sha256sums="5a5657e213f100f4aa3f33ee5f5f5907fa3440fed41aae09d0cb21f9ad92e71f ethtool-3.13.tar.xz
ef1df6825715164bcf9140f8b91ffd9fdc0256a8305c9dc6960ef8e3cfa98042 stdint.patch"
sha512sums="91afe0ee1e99a6a6212e4e4bca339719d46493b46dae5f1a2f516e1794750c9f46777cc3fa030e88d9694a59dfbd65fa9f24510b808bb8b5b8eaca3215bd60c0 ethtool-3.13.tar.xz
c8a602dd814d57728ca66b5257d6b9a990b145a783e61edbe5e09d99a1e8f8b111d936f4b369b239a31f86383ea6fd8cef3f7524d993be6e318d817ab534e422 stdint.patch"
|