blob: 3415e4ea373b96a3b3bb3c4121065265d9f4a690 (
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
|
# Maintainer: Maykel Moya <mmoya at mmoya dot org>
pkgname=ax-usb-nic-dkms
_pkgname="${pkgname%-*}"
pkgver=3.3.0
pkgrel=1
arch=('any')
pkgdesc="Kernel module for ASIX USB Ethernet Controller"
url="https://www.asix.com.tw/en/product/USBEthernet/Super-Speed_USB_Ethernet/AX88179B"
license=('GPL2')
depends=('dkms')
_archivename="asix_usb_nic_linux_driver_v${pkgver}"
source=(
"${_archivename}.tar.bz2::https://www.asix.com.tw/en/support/download/file/1800"
'ax-usb-nic.modprobe.conf'
'dkms.conf'
'0001-Fix-building-on-6.9.patch'
)
sha256sums=(
'09c4de9a39631e810d9100904941700ccf7da5fc4702beda0c88fa90ca7fd076'
'652e3715724de0c1893ffbdfc48a66c7c09e82015429f10254869934dea40b55'
'222bfd44b45b317f7dd856dc11c64afd33eb6f5bbe5e1a46851b93a3b53f1751'
'3fbd56b450d850e3bd3b513ded95328e529fd49a43481c2161cea4c9c09922bc'
)
package() {
find -type f -exec chmod 644 {} +
mkdir -p "${pkgdir}/usr/src/${_pkgname}-${pkgver}"
cp -pr "${_archivename}"/* "${pkgdir}/usr/src/${_pkgname}-${pkgver}"
cp ../????-*.patch "${pkgdir}/usr/src/${_pkgname}-${pkgver}"
(
cd "${pkgdir}/usr/src/${_pkgname}-${pkgver}"
for patchfile in ????-*.patch; do
patch -p1 <$patchfile
done
)
install -Dm644 ../dkms.conf "${pkgdir}/usr/src/${_pkgname}-${pkgver}/dkms.conf"
sed -e "s/@PKGVER@/${pkgver}/" -i "${pkgdir}/usr/src/${_pkgname}-${pkgver}/dkms.conf"
install -Dm644 ../ax-usb-nic.modprobe.conf "${pkgdir}/usr/lib/modprobe.d/ax-usb-nic.conf"
}
|