blob: 2cbecb8b8e7631e0eaf54a646f384168226d3e9d (
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
47
48
49
|
# Maintainer: Edward Pacman < edward(at)edward(minus)p(dot)xyz >
# Contributor: Kurobac <kurobac(at)foxmail(dot)com>
_pkgbase=alx-wol
_kernel_tag=5.3.1-arch1
pkgname=${_pkgbase}-dkms
pkgver=5
pkgrel=1
pkgdesc="The alx kernel module with a patch enabling WoL applied"
license=("GPL")
arch=('i686' 'x86_64')
depends=('glibc' 'dkms')
optdepends=('linux-headers: Needed for build the module for Arch kernel'
'linux-lts-headers: Needed for build the module for LTS Arch kernel'
'linux-zen-headers: Needed for build the module for ZEN Arch kernel')
source=("alx.h::https://git.archlinux.org/linux.git/plain/drivers/net/ethernet/atheros/alx/alx.h?h=v${_kernel_tag}"
"ethtool.c::https://git.archlinux.org/linux.git/plain/drivers/net/ethernet/atheros/alx/ethtool.c?h=v${_kernel_tag}"
"hw.c::https://git.archlinux.org/linux.git/plain/drivers/net/ethernet/atheros/alx/hw.c?h=v${_kernel_tag}"
"hw.h::https://git.archlinux.org/linux.git/plain/drivers/net/ethernet/atheros/alx/hw.h?h=v${_kernel_tag}"
"main.c::https://git.archlinux.org/linux.git/plain/drivers/net/ethernet/atheros/alx/main.c?h=v${_kernel_tag}"
"reg.h::https://git.archlinux.org/linux.git/plain/drivers/net/ethernet/atheros/alx/reg.h?h=v${_kernel_tag}"
000-enable-alx-wol.patch
Kbuild
dkms.conf)
sha256sums=('0d39a982d018b70b112e82207a90cc9daf2c177e53644fdab2ee2aacb52ef394'
'9980a7719f34ed8b1120891196a97afba515f9a6cb9c9646d0a2cdb7a3e89708'
'bf9ac0fa98031523e05d5d62c08ee116fd4a437f66538c95eac18adda10ff89b'
'fcc0306b37382cf8e2f75eafb6bd8696a4a5e360110e5cfe800485f4eebe55aa'
'036e151038cbe583cf8043caad0c38dcb60b37d67b34526bc3c86944b3145e24'
'88a23ab8e6fe814efe81910bd8806f5988d367a628458154edaebdf4ccbe4902'
'3d0549a45f78595bfdcd9d6e14f115ecc159583a39d51b23aa3c9852630823d0'
'8a62bb5adf6e554f470f88f8da58da0ce05cb8276ab56fb45ed5d31c71665d39'
'f3aefc85fd246a74ee2be831c15b6440d22c497e84fba1f57e152c82f2946d1a')
prepare(){
mkdir "${srcdir}/workdir"
cd "${srcdir}/workdir"
cp "${srcdir}/"{alx.h,ethtool.c,hw.c,hw.h,main.c,reg.h} .
patch -p1 < ../000-enable-alx-wol.patch
}
package() {
local dest="$pkgdir/usr/src/${_pkgbase}-$pkgver"
mkdir -p $dest
cd "${srcdir}/workdir/"
cp --preserve=all {alx.h,ethtool.c,hw.c,hw.h,main.c,reg.h} $dest
cd "${srcdir}"
cp --preserve=all Kbuild dkms.conf $dest
}
|